Skip to content

Commit

Permalink
Merge pull request #6 from BottlecapDave/develop
Browse files Browse the repository at this point in the history
new release
  • Loading branch information
BottlecapDave authored Sep 2, 2022
2 parents 36413c8 + 7cc38bf commit 7192c4e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions custom_components/first_bus/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ def extra_state_attributes(self):
"""Attributes of the sensor."""
return self._attributes

@property
def native_unit_of_measurement(self):
return "minutes"

@property
def state(self):
"""The state of the sensor."""
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/api_client/test_get_next_bus.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@pytest.mark.parametrize("buses",[
([]),
(None),
(["19"]),
(["19", "99", "350"]),
])
async def test_when_get_next_bus_is_called_then_next_bus_is_returned(buses):
# Arrange
Expand Down

0 comments on commit 7192c4e

Please sign in to comment.