From 6b9e1f3263ec89511aa8c36bcb0c3bc215fb5e18 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 11 Jul 2016 08:54:15 +0200 Subject: [PATCH 1/2] update rfxtrx to version 0.9 to support lighting4 --- homeassistant/components/rfxtrx.py | 2 +- requirements_all.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/rfxtrx.py b/homeassistant/components/rfxtrx.py index ebb6a9536ed725..c3191ef9e3bd3f 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/requirements_all.txt b/requirements_all.txt index 5e08ee42f677fc..9538966d1aca80 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 From 3b1418902183ed276400a3d52899394bde59130f Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 11 Jul 2016 08:59:14 +0200 Subject: [PATCH 2/2] Make rfxtrx sensor not crash when unknown sensor is discovered --- homeassistant/components/sensor/rfxtrx.py | 1 + 1 file changed, 1 insertion(+) diff --git a/homeassistant/components/sensor/rfxtrx.py b/homeassistant/components/sensor/rfxtrx.py index 49912acb621b36..6cd7b9772310f0 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]