This commit is contained in:
Andrey
2021-01-14 22:19:56 +03:00
parent 012d12437b
commit 79dc46226a
3 changed files with 6 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
"""Platform for light integration."""
import logging
import asyncio
import voluptuous as vol
@@ -69,7 +70,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry, asyn
async_add_devices(devices)
await scan()
asyncio.create_task(scan())
class MegaBinarySensor(BinarySensorEntity, BaseMegaEntity):