verisure component names (#8251)
parent
d0720ac699
commit
31f17a91e6
|
@ -38,7 +38,7 @@ class VerisureDoorWindowSensor(BinarySensorDevice):
|
|||
"""Return the name of the binary sensor."""
|
||||
return hub.get_first(
|
||||
"$.doorWindow.doorWindowDevice[?(@.deviceLabel=='%s')].area",
|
||||
self._device_label) + " door window"
|
||||
self._device_label)
|
||||
|
||||
@property
|
||||
def is_on(self):
|
||||
|
|
|
@ -97,4 +97,4 @@ class VerisureSmartcam(Camera):
|
|||
"""Return the name of this camera."""
|
||||
return hub.get_first(
|
||||
"$.customerImageCameras[?(@.deviceLabel=='%s')].area",
|
||||
self._device_label) + " camera"
|
||||
self._device_label)
|
||||
|
|
|
@ -45,7 +45,7 @@ class VerisureDoorlock(LockDevice):
|
|||
"""Return the name of the lock."""
|
||||
return hub.get_first(
|
||||
"$.doorLockStatusList[?(@.deviceLabel=='%s')].area",
|
||||
self._device_label) + " lock"
|
||||
self._device_label)
|
||||
|
||||
@property
|
||||
def state(self):
|
||||
|
|
|
@ -41,7 +41,7 @@ class VerisureSmartplug(SwitchDevice):
|
|||
"""Return the name or location of the smartplug."""
|
||||
return hub.get_first(
|
||||
"$.smartPlugs[?(@.deviceLabel == '%s')].area",
|
||||
self._device_label) + " switch"
|
||||
self._device_label)
|
||||
|
||||
@property
|
||||
def is_on(self):
|
||||
|
|
Loading…
Reference in New Issue