diff --git a/custom_components/eyeonwater/sensor.py b/custom_components/eyeonwater/sensor.py index a425158..c89b02a 100644 --- a/custom_components/eyeonwater/sensor.py +++ b/custom_components/eyeonwater/sensor.py @@ -79,6 +79,9 @@ def __init__( """Initialize the sensor.""" super().__init__(coordinator) self.meter = meter + chars = [c if c.isalnum() or c == "_" else "_" for c in meter.meter_uuid] + self._uuid = "".join(chars) + self._state: pyonwater.DataPoint | None = None self._available = False self._historical_sensor = True