From 5da110d764184ceef1c96c803a0c8942653d85a7 Mon Sep 17 00:00:00 2001 From: Erik Eriksson Date: Thu, 23 Feb 2017 13:27:17 +0100 Subject: [PATCH] volvooncall: icon and unit were mixed --- homeassistant/components/sensor/volvooncall.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/sensor/volvooncall.py b/homeassistant/components/sensor/volvooncall.py index 332fbdb785e..9554d8c5b02 100644 --- a/homeassistant/components/sensor/volvooncall.py +++ b/homeassistant/components/sensor/volvooncall.py @@ -34,9 +34,9 @@ class VolvoSensor(VolvoEntity): @property def unit_of_measurement(self): """Return the unit of measurement.""" - return RESOURCES[self._attribute][2] + return RESOURCES[self._attribute][3] @property def icon(self): """Return the icon.""" - return RESOURCES[self._attribute][3] + return RESOURCES[self._attribute][2]