Rename LockDevice to LockEntity (#34594)

This commit is contained in:
Erik Montnemery authored and GitHub committed 2020-04-25 18:02:41 +02:00
1 parent 62bc02fdda
commit b30d117e7d
30 files changed
+82 -57

No files matched your search

+2 -2
View File
@@ -8,7 +8,7 @@ from homeassistant.components.lock import (
DOMAIN,
STATE_LOCKED,
STATE_UNLOCKED,
LockDevice,
LockEntity,
)
from homeassistant.core import callback
from homeassistant.helpers.dispatcher import async_dispatcher_connect
@@ -49,7 +49,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
@STRICT_MATCH(channel_names=CHANNEL_DOORLOCK)
class ZhaDoorLock(ZhaEntity, LockDevice):
class ZhaDoorLock(ZhaEntity, LockEntity):
"""Representation of a ZHA lock."""
def __init__(self, unique_id, zha_device, channels, **kwargs):