Skip to content

Commit

Permalink
Update with bad data is unknown
Browse files Browse the repository at this point in the history
  • Loading branch information
NickM-27 committed Apr 21, 2022
1 parent ab07ebb commit b63e56f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async def test_update_sensor_bad_current(hass: HomeAssistant) -> None:

entity_state = hass.states.get(TEST_UPDATE_FRIGATE_CONTAINER_ENTITY_ID)
assert entity_state
assert entity_state.state == "off"
assert entity_state.state == "unknown"
assert entity_state.attributes[ATTR_INSTALLED_VERSION] is None
assert entity_state.attributes[ATTR_LATEST_VERSION] == "0.10.1"

Expand All @@ -102,7 +102,7 @@ async def test_update_sensor_bad_latest(hass: HomeAssistant) -> None:

entity_state = hass.states.get(TEST_UPDATE_FRIGATE_CONTAINER_ENTITY_ID)
assert entity_state
assert entity_state.state == "off"
assert entity_state.state == "unknown"
assert entity_state.attributes[ATTR_INSTALLED_VERSION] == "0.8.4"
assert entity_state.attributes[ATTR_LATEST_VERSION] is None
assert entity_state.attributes[ATTR_RELEASE_URL] is None

0 comments on commit b63e56f

Please sign in to comment.