From 9071946e872cdaee5ed76d01110c39156cab7026 Mon Sep 17 00:00:00 2001 From: Phil Hawthorne Date: Sat, 17 Jun 2017 18:38:15 +1000 Subject: [PATCH] Remove % sign from Vera Battery Levels (#8069) Vera devices are reporting battery levels as a sting by appending a percentage sign (%) on the end. To make the Vera component act like other Home Assistant components, let's remove the percentage sign from the battery report levels so that we only display the battery level. This may be a "breaking change" if people are relying on the Vera battery levels to be a string instead of an int. However, this will make the battery level reports compatible with everything else. --- homeassistant/components/vera.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/vera.py b/homeassistant/components/vera.py index 5d37f0f93d8..cef185bc21f 100644 --- a/homeassistant/components/vera.py +++ b/homeassistant/components/vera.py @@ -164,7 +164,7 @@ class VeraDevice(Entity): attr = {} if self.vera_device.has_battery: - attr[ATTR_BATTERY_LEVEL] = self.vera_device.battery_level + '%' + attr[ATTR_BATTERY_LEVEL] = self.vera_device.battery_level if self.vera_device.is_armable: armed = self.vera_device.is_armed