Skip to content

Commit 7c7962b

Browse files
committed
Fix test setup
1 parent 326c45e commit 7c7962b

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

custom_components/sunspec/__init__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,13 @@ def __init__(self, hass: HomeAssistant, client: SunSpecApiClient, entry) -> None
151151
entry.data.get(CONF_PORT),
152152
entry.data.get(CONF_UNIT_ID),
153153
)
154-
super().__init__(hass, _LOGGER, name=DOMAIN, update_interval=scan_interval)
154+
super().__init__(
155+
hass,
156+
_LOGGER,
157+
name=DOMAIN,
158+
update_interval=scan_interval,
159+
config_entry=entry,
160+
)
155161

156162
async def _async_update_data(self):
157163
"""Update data via library."""

0 commit comments

Comments
 (0)