Skip to content

Commit

Permalink
Merge pull request #38 from ggrandou/clean_str_entities
Browse files Browse the repository at this point in the history
sanitize string sensor values
  • Loading branch information
hekmon authored Nov 14, 2024
2 parents d8a210b + c3695e0 commit 3674a97
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/linkytic/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1512,7 +1512,8 @@ def update(self):
)
self._attr_available = True
# Save value
self._last_value = value
# remove useless spaces
self._last_value = ' '.join(value.split())


class RegularIntSensor(SensorEntity):
Expand Down

0 comments on commit 3674a97

Please sign in to comment.