Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
elsbrock committed Jan 11, 2024
1 parent 120bae7 commit 972b9c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion custom_components/cowboy/binary_sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,11 @@ class CowboyUpdateBinarySensor(CowboyBinarySensor):
@callback
def _handle_coordinator_update(self) -> None:
"""Handle updated data from the coordinator.
This sensor is on if there is a firmware update available and
the bike firmware is not the latest release. The firmware update
must not have status: testing."""
must not have status: testing.
"""
data = self.coordinator.data or {}
firmware = data.get("firmware", {})
firmware_name = firmware.get("name", "")
Expand Down

0 comments on commit 972b9c0

Please sign in to comment.