Rename LockDevice to LockEntity (#34594)
This commit is contained in:
1 parent
62bc02fdda
commit
b30d117e7d
30 files changed
+82
-57
No files matched your search
@@ -1,5 +1,5 @@
|
||||
"""Demo lock platform that has two fake locks."""
|
||||
from homeassistant.components.lock import SUPPORT_OPEN, LockDevice
|
||||
from homeassistant.components.lock import SUPPORT_OPEN, LockEntity
|
||||
from homeassistant.const import STATE_LOCKED, STATE_UNLOCKED
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||
await async_setup_platform(hass, {}, async_add_entities)
|
||||
|
||||
|
||||
class DemoLock(LockDevice):
|
||||
class DemoLock(LockEntity):
|
||||
"""Representation of a Demo lock."""
|
||||
|
||||
def __init__(self, name, state, openable=False):
|
||||
|
||||
Reference in new issue
Block a user