Merge pull request #2487 from home-assistant/rfxtrx

Rfxtrx
pull/2492/head
Daniel Høyer Iversen 2016-07-11 09:18:51 +02:00 committed by GitHub
commit 085d026ab6
3 changed files with 3 additions and 2 deletions

View File

@ -14,7 +14,7 @@ from homeassistant.const import EVENT_HOMEASSISTANT_STOP
from homeassistant.helpers.entity import Entity
from homeassistant.const import (ATTR_ENTITY_ID, TEMP_CELSIUS)
REQUIREMENTS = ['pyRFXtrx==0.8.0']
REQUIREMENTS = ['pyRFXtrx==0.9.0']
DOMAIN = "rfxtrx"

View File

@ -41,6 +41,7 @@ def setup_platform(hass, config, add_devices_callback, discovery_info=None):
sub_sensors = {}
data_types = entity_info[ATTR_DATA_TYPE]
if len(data_types) == 0:
data_type = "Unknown"
for data_type in DATA_TYPES:
if data_type in event.values:
data_types = [data_type]

View File

@ -248,7 +248,7 @@ pushetta==1.0.15
py-cpuinfo==0.2.3
# homeassistant.components.rfxtrx
pyRFXtrx==0.8.0
pyRFXtrx==0.9.0
# homeassistant.components.notify.xmpp
pyasn1-modules==0.0.8