Skip to content

Commit

Permalink
[skip ci] Add annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
denpamusic committed Dec 14, 2023
1 parent f8730d5 commit 080d456
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions custom_components/plum_ecomax/entity.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ async def async_added_to_hass(self):
"""Subscribe to events."""

async def async_set_available(_=None) -> None:
"""Mark entity as available."""
self._attr_available = True

func = self.entity_description.filter_fn(self.async_update)
Expand Down
3 changes: 2 additions & 1 deletion custom_components/plum_ecomax/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,8 @@ async def async_update(self, value: dict[str, Any]) -> None:
async def async_added_to_hass(self):
"""Subscribe to regdata event."""

async def async_set_available(regdata: dict[str, Any]) -> None:
async def async_set_available(regdata: dict[int, Any]) -> None:
"""Mark entity as available."""
if self.entity_description.key in regdata:
self._attr_available = True

Expand Down

0 comments on commit 080d456

Please sign in to comment.