Rename CoverDevice to CoverEntity (#34595)

This commit is contained in:
Erik Montnemery 2020-04-25 18:07:15 +02:00 committed by GitHub
parent 6f7f5b4034
commit 8c5c963b96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
53 changed files with 139 additions and 116 deletions

View file

@ -7,7 +7,7 @@ from homeassistant.components.cover import (
SUPPORT_CLOSE,
SUPPORT_OPEN,
SUPPORT_SET_POSITION,
CoverDevice,
CoverEntity,
)
from .insteon_entity import InsteonEntity
@ -34,12 +34,12 @@ async def async_setup_platform(hass, config, async_add_entities, discovery_info=
device.states[state_key].name,
)
new_entity = InsteonCoverDevice(device, state_key)
new_entity = InsteonCoverEntity(device, state_key)
async_add_entities([new_entity])
class InsteonCoverDevice(InsteonEntity, CoverDevice):
class InsteonCoverEntity(InsteonEntity, CoverEntity):
"""A Class for an Insteon device."""
@property