Skip to content

Commit

Permalink
Code improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
iMicknl committed Jan 7, 2024
1 parent a89507c commit cea76d1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/sagemcom_fast/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
return unload_ok


async def update_listener(hass: HomeAssistant, entry: ConfigEntry):
async def update_listener(hass: HomeAssistant, entry: ConfigEntry) -> None:
"""Update when entry options update."""
if entry.options[CONF_SCAN_INTERVAL]:
data: HomeAssistantSagemcomFastData = hass.data[DOMAIN][entry.entry_id]
Expand Down
1 change: 1 addition & 0 deletions custom_components/sagemcom_fast/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ async def async_step_user(self, user_input=None):
errors = {}

if user_input:
# TODO change to gateway mac address or something more unique
await self.async_set_unique_id(user_input.get(CONF_HOST))
self._abort_if_unique_id_configured()

Expand Down

0 comments on commit cea76d1

Please sign in to comment.