Skip to content

Commit

Permalink
Merge pull request #141 from henricm/dependabot/pip/pytest-homeassist…
Browse files Browse the repository at this point in the history
…ant-custom-component-0.7.3

build(deps): bump pytest-homeassistant-custom-component from 0.6.2 to 0.7.3
  • Loading branch information
argoyle authored Mar 17, 2022
2 parents 1f99df9 + 1ac896f commit 8bc50cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions custom_components/ferroamp/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,9 +594,8 @@ async def async_added_to_hass(self) -> None:
"""Handle entity which will be added."""
await super().async_added_to_hass()
state = await self.async_get_last_state()
if not state:
return
self._attr_native_value = state.state
if state:
self._attr_native_value = state.state
self.hass.data[DOMAIN][DATA_DEVICES][self.config_id][self.device_id][self.unique_id] = self
self._added = True

Expand Down
2 changes: 1 addition & 1 deletion requirements.test.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Strictly for tests
# TODO: Replace master-branch version when a new release is available
pytest-homeassistant-custom-component==0.6.2
pytest-homeassistant-custom-component==0.7.3
# From our manifest.json for our custom component
aiohttp_cors==0.7.0
paho-mqtt==1.6.1

0 comments on commit 8bc50cc

Please sign in to comment.