veista / nilan

Nilan integration for Home Assistant
Apache License 2.0
45 stars 10 forks source link

Home Assistant 2023.9 broke Nilan integration - "Failed to set up" #82

Closed jamespreedy closed 10 months ago

jamespreedy commented 10 months ago

Hey @veista - hope you're well!

Just raising this one as it seems that Home Assistant 2023.9 has broken my Nilan integration. 😢 It was working fine before the update, wouldn't start up after the update.

Screenshot 2023-09-07 at 9 38 25 am

I'm getting the below in the logs.

Is there more information I need to add to help here? Debug logs etc?

This error originated from a custom integration.

Logger: homeassistant.config_entries
Source: custom_components/nilan/device.py:120 
Integration: Nilan (documentation, issues) 
First occurred: 9:43:07 am (1 occurrences) 
Last logged: 9:43:07 am

Error setting up entry Nilan Combi 302 for nilan
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/nilan/__init__.py", line 41, in async_setup_entry
    await device.setup()
  File "/config/custom_components/nilan/device.py", line 61, in setup
    hw_type = await self.get_machine_type()
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/nilan/device.py", line 120, in get_machine_type
    result = await self._modbus.async_pymodbus_call(
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'ModbusHub' object has no attribute 'async_pymodbus_call'