Skip to content

Commit

Permalink
Clarifying function name
Browse files Browse the repository at this point in the history
Gateway is more representative then base_station in this case.
  • Loading branch information
valleedelisle committed Dec 24, 2021
1 parent b35f46f commit 935fbab
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions custom_components/hilo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def _async_standardize_config_entry(hass: HomeAssistant, entry: ConfigEntry) ->


@callback
def _async_register_base_station(
def _async_register_gateway(
hass: HomeAssistant, entry: ConfigEntry, gateway: HiloDevice
) -> None:
"""Register a new bridge."""
Expand Down Expand Up @@ -252,9 +252,7 @@ async def async_init(self) -> None:

await self.devices.async_init()

_async_register_base_station(
self._hass, self.entry, self.devices.find_device(1)
)
_async_register_gateway(self._hass, self.entry, self.devices.find_device(1))

self._api.websocket.add_connect_callback(self.request_status_update)
self._api.websocket.add_event_callback(self.on_websocket_event)
Expand Down

0 comments on commit 935fbab

Please sign in to comment.