Add support for more Tibber Pulse data (#19033)

This commit is contained in:
Daniel Høyer Iversen 2018-12-06 09:30:11 +01:00 committed by Paulus Schoutsen
parent 72379c166e
commit d4c8024522
3 changed files with 7 additions and 3 deletions

View File

@ -191,7 +191,11 @@ class TibberSensorRT(Entity):
if live_measurement is None: if live_measurement is None:
return return
self._state = live_measurement.pop('power', None) self._state = live_measurement.pop('power', None)
self._device_state_attributes = live_measurement for key, value in live_measurement.items():
if value is None:
continue
self._device_state_attributes[key] = value
self.async_schedule_update_ha_state() self.async_schedule_update_ha_state()
@property @property

View File

@ -16,7 +16,7 @@ from homeassistant.const import (EVENT_HOMEASSISTANT_STOP, CONF_ACCESS_TOKEN,
from homeassistant.helpers import discovery from homeassistant.helpers import discovery
from homeassistant.helpers.aiohttp_client import async_get_clientsession from homeassistant.helpers.aiohttp_client import async_get_clientsession
REQUIREMENTS = ['pyTibber==0.8.4'] REQUIREMENTS = ['pyTibber==0.8.5']
DOMAIN = 'tibber' DOMAIN = 'tibber'

View File

@ -834,7 +834,7 @@ pyRFXtrx==0.23
pySwitchmate==0.4.4 pySwitchmate==0.4.4
# homeassistant.components.tibber # homeassistant.components.tibber
pyTibber==0.8.4 pyTibber==0.8.5
# homeassistant.components.switch.dlink # homeassistant.components.switch.dlink
pyW215==0.6.0 pyW215==0.6.0