diff --git a/homeassistant/components/sensor/geizhals.py b/homeassistant/components/sensor/geizhals.py index 5ba64dfa995..94f3f1884d1 100644 --- a/homeassistant/components/sensor/geizhals.py +++ b/homeassistant/components/sensor/geizhals.py @@ -80,6 +80,8 @@ class Geizwatch(Entity): @property def device_state_attributes(self): """Return the state attributes.""" + while len(self.data.prices) < 4: + self.data.prices.append("None") attrs = {'device_name': self.data.device_name, 'description': self.description, 'unit_of_measurement': self.data.unit_of_measurement,