Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
Added initial refresh
  • Loading branch information
petehhhhh authored May 11, 2024
1 parent 1ec1d02 commit 93e0672
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/manage_energy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
hub = manage_energy(
hass, entry.data["host"], poll_frequency, minimum_margin, cheap_price)
hass.data.setdefault(DOMAIN, {})[entry.entry_id] = hub
await hub.refresh()

# This creates each HA object for each platform your device requires.
# It's done by calling the `async_setup_entry` function in each platform module.
Expand Down

0 comments on commit 93e0672

Please sign in to comment.