Tibber use appNickname as name (#13231)

This commit is contained in:
Clement Wong 2018-03-15 13:16:52 +01:00 committed by Daniel Høyer Iversen
parent 646ed5de52
commit 5c434f143e

View file

@ -61,7 +61,8 @@ class TibberSensor(Entity):
self._state = None
self._device_state_attributes = {}
self._unit_of_measurement = self._tibber_home.price_unit
self._name = 'Electricity price {}'.format(tibber_home.address1)
self._name = 'Electricity price {}'.format(tibber_home.info['viewer']
['home']['appNickname'])
async def async_update(self):
"""Get the latest data and updates the states."""