本帖最后由 netsnake 于 2019-10-7 07:33 编辑
File "/config/custom_components/broadlink_mp1/switch.py", line 74,
in setup_platform persistent_notification = loader.get_component(hass,'persistent_notification')AttributeError: module 'homeassistant.loader' has no attribute 'get_component'
homeassistant.loader.get_component(hass, comp_or_platform: str) → Optional[module][source]Try to load specified component. Looks in config dir first, then built-in components. Only returns it if also found to be valid. Async friendly.
|