Skip to content

Commit 820f422

Browse files
committed
Missing binary_ for sensor
1 parent dedac84 commit 820f422

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/plugwise-beta/binary_sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def __init__(self, api, updater, name, binary_sensor, dev_id):
6868
self._name = name
6969
self._binary_sensor = binary_sensor
7070
self._is_on = False
71-
self._unique_id = f"bs-{dev_id}-{name}-{sensor}"
71+
self._unique_id = f"bs-{dev_id}-{name}-{binary_sensor}"
7272

7373
sensorname = binary_sensor.replace("_", " ").title()
7474
self._sensorname = f"{name} {sensorname}"

0 commit comments

Comments
 (0)