Updated own integrations for new HA version
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
import voluptuous as vol
|
||||
import logging
|
||||
|
||||
from homeassistant.components.cover import PLATFORM_SCHEMA, CoverDevice, SUPPORT_OPEN, SUPPORT_CLOSE, \
|
||||
from homeassistant.components.cover import PLATFORM_SCHEMA, CoverEntity, SUPPORT_OPEN, SUPPORT_CLOSE, \
|
||||
SUPPORT_SET_POSITION, SUPPORT_STOP, ATTR_POSITION
|
||||
from homeassistant.const import CONF_NAME
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
@@ -27,7 +27,7 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
|
||||
async_add_entities([cover])
|
||||
|
||||
|
||||
class FhemCover(CoverDevice):
|
||||
class FhemCover(CoverEntity):
|
||||
|
||||
def __init__(self, connection, name, ids):
|
||||
self._position = None
|
||||
|
||||
Reference in New Issue
Block a user