LAB02-Research / HASS.Agent-Integration

HASS.Agent's Home Assistant integration. Adds notifications and mediaplayer capabilities to HASS.Agent - a Windows based client (companion app) for Home Assistant.
MIT License
113 stars 21 forks source link

Error in Home Assistant 2023.6.0 beta #26

Open B-Hartley opened 1 year ago

B-Hartley commented 1 year ago

Python version problem?

Home Assistant 2023.6.0b2 Supervisor 2023.06.0 Operating System 10.2 Frontend 20230601.1 - latest

2023-06-02 07:41:01.146 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry BH-PC for hass_agent
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup
    result = await component.async_setup_entry(hass, self)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/hass_agent/__init__.py", line 162, in async_setup_entry
    await async_subscribe_topics(hass, sub_state)
  File "/usr/src/homeassistant/homeassistant/components/mqtt/subscription.py", line 131, in async_subscribe_topics
    await sub.subscribe()
  File "/usr/src/homeassistant/homeassistant/components/mqtt/subscription.py", line 60, in subscribe
    self.unsubscribe_callback = await self.subscribe_task
                                ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/mqtt/client.py", line 174, in async_subscribe
    mqtt_data = get_mqtt_data(hass)
                ^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/mqtt/util.py", line 179, in get_mqtt_data
    mqtt_data = hass.data[DATA_MQTT]
                ~~~~~~~~~^^^^^^^^^^^
KeyError: 'mqtt'