From ce7f678b9b505e25ab6d995bedd2fc6544e294f8 Mon Sep 17 00:00:00 2001 From: CV Date: Mon, 18 Feb 2019 03:53:57 +0100 Subject: [PATCH] RSSI_PEER and RSSI_DEVICE are different things (fixes #20900) (#20902) * Fix #20900: RSSI_PEER and RSSI_DEVICE are different things This change is fixing issue #20900. Wireless actors are having two RSSI values. The way the component was programmed one of them was overwritten. * Added deprecation comment * Fixed long line * Fix: pylint comment * Lint * flake8 * flake8 again * Update __init__.py --- homeassistant/components/homematic/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/homematic/__init__.py b/homeassistant/components/homematic/__init__.py index 2918f8e03f9..e71bc1d8f2d 100644 --- a/homeassistant/components/homematic/__init__.py +++ b/homeassistant/components/homematic/__init__.py @@ -107,8 +107,8 @@ HM_ATTRIBUTE_SUPPORT = { 'ERROR': ['sabotage', {0: 'No', 1: 'Yes'}], 'ERROR_SABOTAGE': ['sabotage', {0: 'No', 1: 'Yes'}], 'SABOTAGE': ['sabotage', {0: 'No', 1: 'Yes'}], - 'RSSI_PEER': ['rssi', {}], - 'RSSI_DEVICE': ['rssi', {}], + 'RSSI_PEER': ['rssi_peer', {}], + 'RSSI_DEVICE': ['rssi_device', {}], 'VALVE_STATE': ['valve', {}], 'LEVEL': ['level', {}], 'BATTERY_STATE': ['battery', {}],