From 31f17a91e655967067e3bf531bb240d84d74b148 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Per=20Sandstr=C3=B6m?= Date: Fri, 30 Jun 2017 08:53:14 +0200 Subject: [PATCH] verisure component names (#8251) --- homeassistant/components/binary_sensor/verisure.py | 2 +- homeassistant/components/camera/verisure.py | 2 +- homeassistant/components/lock/verisure.py | 2 +- homeassistant/components/switch/verisure.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/binary_sensor/verisure.py b/homeassistant/components/binary_sensor/verisure.py index f6c0123ad0a..8702c8bd770 100644 --- a/homeassistant/components/binary_sensor/verisure.py +++ b/homeassistant/components/binary_sensor/verisure.py @@ -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): diff --git a/homeassistant/components/camera/verisure.py b/homeassistant/components/camera/verisure.py index fbe91ad91a8..b637858303e 100644 --- a/homeassistant/components/camera/verisure.py +++ b/homeassistant/components/camera/verisure.py @@ -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) diff --git a/homeassistant/components/lock/verisure.py b/homeassistant/components/lock/verisure.py index 7a24dd6bb37..4af19f52611 100644 --- a/homeassistant/components/lock/verisure.py +++ b/homeassistant/components/lock/verisure.py @@ -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): diff --git a/homeassistant/components/switch/verisure.py b/homeassistant/components/switch/verisure.py index 597e1aa5959..710580c2ec6 100644 --- a/homeassistant/components/switch/verisure.py +++ b/homeassistant/components/switch/verisure.py @@ -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):