Improved async. Fix #97.

This commit is contained in:
2020-05-02 21:03:23 +02:00
parent 59478919f1
commit 350a18bf81
4 changed files with 6 additions and 6 deletions

View File

@@ -2,7 +2,7 @@ import logging
from datetime import datetime
from homeassistant.const import STATE_UNAVAILABLE, STATE_ON, STATE_OFF
from homeassistant.components.light import Light, SUPPORT_BRIGHTNESS
from homeassistant.components.light import LightEntity, SUPPORT_BRIGHTNESS
from .helpers import setup_platform, BrowserModEntity
@@ -11,7 +11,7 @@ PLATFORM = 'light'
async def async_setup_platform(hass, config, async_add_devices, discovery_info=None):
return setup_platform(hass, config, async_add_devices, PLATFORM, BrowserModLight)
class BrowserModLight(Light, BrowserModEntity):
class BrowserModLight(LightEntity, BrowserModEntity):
domain = PLATFORM
def __init__(self, hass, connection, deviceID, alias=None):