Use StartStopEventWrapper
for sensor events
#19131
Labels
difficulty/starter 🚀
Categorizes an issue for which the difficulty level is reachable by newcomers
good first issue
Denotes an issue ready for a new contributor, according to the "help wanted" guidelines.
kind/enhancement
New feature or request
What would you like to be added
Currently most sensors use a field + event combo to ensure the sensor tracking is started when the first subscriber is added and stopped when the last subscriber is removed. This logic is encapsulated in
StartStopEventWrapper
, so to simplify the codebase, it should be used instead.Why is this needed
No response
For which platform
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: