verisure component names (#8251)

This commit is contained in:
Per Sandström authored and Pascal Vizeli committed 2017-06-30 08:53:14 +02:00
1 parent d0720ac699
commit 31f17a91e6
4 files changed
+4 -4

No files matched your search

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