verisure component names (#8251)

pull/8261/head
Per Sandström 2017-06-30 08:53:14 +02:00 committed by Pascal Vizeli
parent d0720ac699
commit 31f17a91e6
4 changed files with 4 additions and 4 deletions

View File

@ -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):

View File

@ -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)

View File

@ -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):

View File

@ -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):