Closed emontnemery closed 4 months ago
The recent changes in the custom_components/hacs
module focus on simplifying the platform setup process. The async_startup
and async_unload_entry
functions in __init__.py
were refactored to streamline platform registration based on configuration types and experimental settings. Additionally, the base.py
file was updated to remove the Platform.SENSOR
, keeping only Platform.UPDATE
, affecting the logic for recreating entities.
File | Change Summary |
---|---|
custom_components/hacs/__init__.py |
Refactored async_startup and async_unload_entry functions to simplify platform setup and registration based on configuration and experimental settings. |
custom_components/hacs/base.py |
Modified async_recreate_entities to only include Platform.UPDATE in the platforms list, removing Platform.SENSOR . |
sequenceDiagram
participant User
participant HACS
participant Platform
User->>HACS: Initiate Startup
HACS->>HACS: Check Configuration Type
alt Experimental Enabled
HACS->>Platform: Register "update"
else
HACS->>Platform: Register Standard Platforms
end
User->>HACS: Initiate Unload
HACS->>HACS: Check Experimental Configuration
alt Experimental Enabled
HACS->>Platform: Unregister "update"
end
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@coderabbitai review