diff --git a/homeassistant/components/sensor/tibber.py b/homeassistant/components/sensor/tibber.py index 3670a5a59bd..ebc38fcb739 100644 --- a/homeassistant/components/sensor/tibber.py +++ b/homeassistant/components/sensor/tibber.py @@ -151,7 +151,7 @@ class TibberSensor(Entity): if now.date() == price_time.date(): max_price = max(max_price, price_total) min_price = min(min_price, price_total) - self._state = state - self._device_state_attributes['max_price'] = max_price - self._device_state_attributes['min_price'] = min_price + self._state = state + self._device_state_attributes['max_price'] = max_price + self._device_state_attributes['min_price'] = min_price return state is not None