Skip to content

Commit 7171b26

Browse files
committed
Start mocking out MQTT support
1 parent be5acd2 commit 7171b26

File tree

11 files changed

+608
-43
lines changed

11 files changed

+608
-43
lines changed

custom_components/lampie/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,13 @@ async def async_setup_entry(hass: HomeAssistant, entry: LampieConfigEntry) -> bo
4545
_LOGGER.debug("setup %s with config:%s", entry.title, entry.data)
4646

4747
if DOMAIN not in hass.data:
48-
hass.data[DOMAIN] = LampieOrchestrator(hass)
48+
orchestrator = LampieOrchestrator(hass)
49+
hass.data[DOMAIN] = orchestrator
50+
51+
await orchestrator.setup()
4952

5053
coordinator = LampieUpdateCoordinator(hass, entry)
51-
orchestrator: LampieOrchestrator = hass.data[DOMAIN]
54+
orchestrator = hass.data[DOMAIN]
5255
orchestrator.add_coordinator(coordinator)
5356
entry.runtime_data = LampieConfigEntryRuntimeData(
5457
orchestrator=orchestrator,

0 commit comments

Comments
 (0)