From 8b986b0b971cb48320629115f799cdeb309a8b46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98ystein=20Hansen?= Date: Thu, 14 Apr 2016 06:22:40 +0200 Subject: [PATCH] mysensors.py Prevent sensor name mixup (#1802) Change the sensor name schema so nodes are not mixed up. The dot that was pressent before was ignored by home-assistant. Before name: eg. wall 107 New name : eg. wall 10 7 This will result in a Home Assistant Entity ID of: sensor.wall_10_7 --- homeassistant/components/mysensors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/mysensors.py b/homeassistant/components/mysensors.py index 570a59151ce..ec8976c8373 100644 --- a/homeassistant/components/mysensors.py +++ b/homeassistant/components/mysensors.py @@ -139,7 +139,7 @@ def pf_callback_factory(map_sv_types, devices, add_devices, entity_class): if key in devices: devices[key].update_ha_state(True) continue - name = '{} {}.{}'.format( + name = '{} {} {}'.format( gateway.sensors[node_id].sketch_name, node_id, child.id) if isinstance(entity_class, dict): device_class = entity_class[child.type]