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
Exception in callback AIThermostat.async_added_to_hass.<locals>._async_startup #25
Comments
@IvanUpa I know this bug, but thank you anyway, will be fixed in 0.5.0 But i wonder why you haven't any devices informations in your HA TRV output, have you enabled "include_device_information" in your Z2M instance? |
@KartoffelToby Thanks for the integration, waiting for the fix :) |
@IvanUpa 0.5.0 is published, be sure to turn on include_device_information in Z2M otherwise this intigration didn't work correctly |
Still an error :(
Error on startup: Error doing job: Exception in callback AIThermostat.async_added_to_hass.._async_startup(<Event homeassistant_start[L]>) at /config/custom_components/ai_thermostat/climate.py:208 |
@KartoffelToby |
TRV Model: BRT-100-TRV
Z2M Version: 1.22.0-2
HA Version: 2021.11.4
ai_thermostat version: 0.4.0
weather integration: Meteorologisk institutt (Met.no)
Config ai_thermostat:
Description
There is an error when starting HA:
Logger: homeassistant
Source: custom_components/ai_thermostat/climate.py:217
Integration: ai_thermostat (documentation, issues)
First occurred: 18:46:06 (1 occurrences)
Last logged: 18:46:06
Error doing job: Exception in callback AIThermostat.async_added_to_hass.._async_startup(<Event homeassistant_start[L]>) at /config/custom_components/ai_thermostat/climate.py:209
Traceback (most recent call last):
File "/usr/local/lib/python3.9/asyncio/events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "/usr/src/homeassistant/homeassistant/core.py", line 835, in _onetime_listener
self._hass.async_run_job(listener, event)
File "/usr/src/homeassistant/homeassistant/core.py", line 452, in async_run_job
return self.async_run_hass_job(HassJob(target), *args)
File "/usr/src/homeassistant/homeassistant/core.py", line 433, in async_run_hass_job
hassjob.target(*args)
File "/config/custom_components/ai_thermostat/climate.py", line 217, in _async_startup
self.mqtt.async_publish('zigbee2mqtt/'+self.hass.states.get(self.heater_entity_id).attributes.get('friendly_name')+'/set', payload, 0, False)
AttributeError: 'NoneType' object has no attribute 'attributes'
Steps to Reproduce
The text was updated successfully, but these errors were encountered: