diff --git a/homeassistant/components/rfxtrx.py b/homeassistant/components/rfxtrx.py index ebb6a9536ed72..c3191ef9e3bd3 100644 --- a/homeassistant/components/rfxtrx.py +++ b/homeassistant/components/rfxtrx.py @@ -14,7 +14,7 @@ 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" diff --git a/homeassistant/components/sensor/rfxtrx.py b/homeassistant/components/sensor/rfxtrx.py index 49912acb621b3..6cd7b9772310f 100644 --- a/homeassistant/components/sensor/rfxtrx.py +++ b/homeassistant/components/sensor/rfxtrx.py @@ -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] diff --git a/requirements_all.txt b/requirements_all.txt index 5e08ee42f677f..9538966d1aca8 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -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