chamberlain2007 / aprilaire-ha

A custom component for Home Assistant to interact with Aprilaire thermostats.
MIT License
12 stars 5 forks source link

Update manifest.json #2

Closed ADeadPixel closed 1 year ago

ADeadPixel commented 1 year ago

This change will hopefully address the following error getting thrown in the HA logs

Traceback (most recent call last):
  File "/config/custom_components/aprilaire/client.py", line 265, in data_received
    self.data_received_callback(data)
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 346, in async_set_updated_data
    self.async_update_listeners()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 121, in async_update_listeners
    update_callback()
  File "/config/custom_components/aprilaire/entity.py", line 38, in _handle_coordinator_update
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 545, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 582, in _async_write_ha_state
    available = self.available  # only call self.available once per update cycle
  File "/config/custom_components/aprilaire/sensor.py", line 45, in available
    return super().available() and self._data.get("indoor_humidity_controlling_sensor_status", None) == 0
TypeError: 'bool' object is not callable
chamberlain2007 commented 1 year ago

Hi, this should be fixed on main as of this morning. Can you give it a shot?

ADeadPixel commented 1 year ago

I just pulled it in and am testing. So far it looks like the errors are gone. I was about to come back and abandon this PR.

Although, I would like to still use this PR to make the very minor update to the manifest json. I'll strip out the re-naming and keep the manifest update in if you're good with that.

chamberlain2007 commented 1 year ago

Good catch on the manifest.json, some bad copy pasta :)