[go: nahoru, domu]

Skip to content

Commit

Permalink
No need to do status refresh after login
Browse files Browse the repository at this point in the history
  • Loading branch information
qqaatw committed Mar 27, 2023
1 parent 7f214ab commit f9eeac6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions custom_components/jcihitachi_tw/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,8 @@ async def async_setup(hass, config):
hass.data[DOMAIN] = {}
hass.data[DOMAIN][API] = api
hass.data[DOMAIN][UPDATE_DATA] = Queue()
hass.data[DOMAIN][UPDATED_DATA] = dict()
hass.data[DOMAIN][UPDATED_DATA] = api.get_status(legacy=True)
hass.data[DOMAIN][COORDINATOR] = build_coordinator(hass, api)
await hass.data[DOMAIN][COORDINATOR].async_refresh()

# Start jcihitachi components
_LOGGER.debug("Starting JciHitachi components.")
Expand Down Expand Up @@ -168,9 +167,8 @@ async def async_setup_entry(hass, config_entry):
hass.data[DOMAIN] = {}
hass.data[DOMAIN][API] = api
hass.data[DOMAIN][UPDATE_DATA] = Queue()
hass.data[DOMAIN][UPDATED_DATA] = dict()
hass.data[DOMAIN][UPDATED_DATA] = api.get_status(legacy=True)
hass.data[DOMAIN][COORDINATOR] = build_coordinator(hass, api)
await hass.data[DOMAIN][COORDINATOR].async_refresh()

# Start jcihitachi components
_LOGGER.debug("Starting JciHitachi components.")
Expand Down

0 comments on commit f9eeac6

Please sign in to comment.