Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bramstroker committed Apr 30, 2023
1 parent 90cc64c commit 89b9db6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion requirements.test.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
black
flake8
freezegun
pytest-homeassistant-custom-component==0.13.3
pytest-homeassistant-custom-component==0.13.23
types-pytz
types-croniter
numpy
Expand Down
4 changes: 3 additions & 1 deletion tests/sensors/test_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -1065,4 +1065,6 @@ async def test_storage(hass: HomeAssistant):
store: PreviousStateStore = await PreviousStateStore.async_get_instance(hass)
store_state = store.get_entity_state("sensor.dummy")

assert state == store_state
assert state.entity_id == store_state.entity_id
assert state.state == store_state.state
assert state.last_updated == store_state.last_updated

0 comments on commit 89b9db6

Please sign in to comment.