Skip to content

Commit 2c8e710

Browse files
committed
Sanitise entity_id
Signed-off-by: Olivier Mehani <[email protected]>
1 parent 4a6a71f commit 2c8e710

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_components/auroraplus/sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ def __init__(self, hass, sensor, name, aurora_api, rounding):
148148
self._state = None
149149
self._last_reset = None
150150
self._api = aurora_api
151-
self._uniqueid = self._name
151+
self._uniqueid = self._name.replace(' ', '_').lower()
152152
self._rounding = rounding
153153
_LOGGER.debug("Created sensor %s", self._sensor)
154154

0 commit comments

Comments
 (0)