Skip to content

Conversation

@danielbrunt57
Copy link

Modify to add SERVICE_RELOAD
Another try at async_setup...
Removed await process_config(config)
reload_config not working
Another try...
Another try...
Fixed typo in PLATFORMS:
Unexpected indent line 227: _LOGGER.info
Added async def _handle_reload
Changed _logger = logging.getLogger(__name__) to _LOGGER = logging.getLogger(__name__)
Line 161 - Try: return requests.get(f"{url}/info", timeout=60)
Line 42 - Try: PLATFORMS: list[Platform] = [Platform.MEDIA_PLAYER, Platform.MQTT]
Add async def async_wait_for_mqtt_client(hass: HomeAssistant)
Line 17 - Try: from homeassistant.components import mqtt
ImportError: cannot import name 'DATA_MQTT' from 'homeassistant.const'
- Added reload service
- Make sure MQTT integration is enabled and the client is available
Changed 'def' to 'async def'
Changed 'update_device_info' to 'await update_device_info'
Version 2024.5.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HASS-Agent fails to load when HA is restarted but succeeds when manually reloaded

1 participant