Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor
Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor copied to clipboard
Separation between the camera component and data provider
- Add vacuum manager to handle all the logic
- Camera component will use the latest state of the vacuum manager
- Map status to log messages - every time status is being changed, it will be logged accordingly, no need to call logger
- Map device to handlers instead of IF statement
It looks quite nice. I thought about using built-in coordinator though: https://github.com/home-assistant/core/blob/dev/homeassistant/helpers/update_coordinator.py
I wanted it to be simple as possible so didn't add new elements just separation and cleanup, but correct, next step is to wrap it as coordinator
That's an easy change :) I will take a look at it 👍 thank you!
@PiotrMachowski any updates about that PR?
thanks
@elad-bar I plan to make a lot of maintenance on all my repos soon, sorry for long wait, I have a lot of other repos to maintain