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: <skeatchname> <node_id><child_id> eg. wall 107 New name : <skeatchname> <node_id> <child_id> eg. wall 10 7 This will result in a Home Assistant Entity ID of: sensor.wall_10_7
This commit is contained in:
parent
f1d8667d7e
commit
8b986b0b97
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Reference in a new issue