Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add reload service call and fix MQTT is not enabled at startup #44

Open
wants to merge 19 commits into
base: main
Choose a base branch
from

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