jlvaillant / intellicenter

Home Assistant Integration for Pentair Intellicenter
GNU General Public License v3.0
38 stars 13 forks source link

HA 2024.1.0 seems to break water_heater entities #71

Open wr420 opened 10 months ago

wr420 commented 10 months ago

FYI I just upgraded to to HA 2024.1.0 and the 2 water heater entities became unavailable. Restarted, reinstalled intellicenter integration and HACS addon a few times and no luck. At one point I ended up with 2 pool and 2 spa switches with no water heater. Down grading to 2023.12.4 brought them back immediately.

ntalekt commented 10 months ago

Same

liquidt1983 commented 10 months ago

Same happened to me as well.

jonoberheide commented 10 months ago

Some logs here:

2024-01-04 09:14:29.716 WARNING (MainThread) [homeassistant.const] TEMP_CELSIUS was used from intellicenter, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.CELSIUS instead, please create a bug report at https://github.com/jlvaillant/intellicenter/issues
2024-01-04 09:14:29.717 WARNING (MainThread) [homeassistant.const] TEMP_FAHRENHEIT was used from intellicenter, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfTemperature.FAHRENHEIT instead, please create a bug report at https://github.com/jlvaillant/intellicenter/issues
2024-01-04 09:14:30.338 INFO (MainThread) [custom_components.intellicenter.pyintellicenter.controller] model now contains 39 objects
2024-01-04 09:14:30.371 WARNING (MainThread) [homeassistant.helpers.entity] Entity None (<class 'custom_components.hacs.update.HacsRepositoryUpdateEntity'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <UpdateEntityFeature.INSTALL|PROGRESS|RELEASE_NOTES: 21>, please create a bug report at https://github.com/hacs/integration/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
2024-01-04 09:14:30.371 WARNING (MainThread) [homeassistant.helpers.entity] Entity None (<class 'custom_components.hacs.update.HacsRepositoryUpdateEntity'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <UpdateEntityFeature.INSTALL|PROGRESS|RELEASE_NOTES: 21>, please create a bug report at https://github.com/hacs/integration/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
2024-01-04 09:14:30.371 WARNING (MainThread) [homeassistant.helpers.entity] Entity None (<class 'custom_components.hacs.update.HacsRepositoryUpdateEntity'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <UpdateEntityFeature.INSTALL|PROGRESS|RELEASE_NOTES: 21>, please create a bug report at https://github.com/hacs/integration/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
2024-01-04 09:14:30.371 WARNING (MainThread) [homeassistant.helpers.entity] Entity None (<class 'custom_components.hacs.update.HacsRepositoryUpdateEntity'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <UpdateEntityFeature.INSTALL|PROGRESS|RELEASE_NOTES: 21>, please create a bug report at https://github.com/hacs/integration/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
2024-01-04 09:14:30.372 WARNING (MainThread) [homeassistant.helpers.entity] Entity None (<class 'custom_components.hacs.update.HacsRepositoryUpdateEntity'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <UpdateEntityFeature.INSTALL|PROGRESS|RELEASE_NOTES: 21>, please create a bug report at https://github.com/hacs/integration/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
2024-01-04 09:14:30.483 WARNING (MainThread) [custom_components.intellicenter.pyintellicenter.controller] CONTROLLER: error 400 : {'command': 'Error', 'messageID': '25c19228-6308-461a-beb8-ba40214bffd9', 'response': '400', 'description': 'ParseError: unexpected end of input'}
2024-01-04 09:14:30.512 WARNING (MainThread) [homeassistant.const] POWER_WATT was used from intellicenter, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfPower.WATT instead, please create a bug report at https://github.com/jlvaillant/intellicenter/issues
2024-01-04 09:14:30.515 WARNING (MainThread) [homeassistant.components.water_heater] SUPPORT_OPERATION_MODE was used from intellicenter, this is a deprecated constant which will be removed in HA Core 2025.1. Use WaterHeaterEntityFeature.OPERATION_MODE instead, please create a bug report at https://github.com/jlvaillant/intellicenter/issues
2024-01-04 09:14:30.516 WARNING (MainThread) [homeassistant.components.water_heater] SUPPORT_TARGET_TEMPERATURE was used from intellicenter, this is a deprecated constant which will be removed in HA Core 2025.1. Use WaterHeaterEntityFeature.TARGET_TEMPERATURE instead, please create a bug report at https://github.com/jlvaillant/intellicenter/issues
2024-01-04 09:14:30.517 WARNING (MainThread) [homeassistant.components.water_heater] SUPPORT_OPERATION_MODE was used from intellicenter, this is a deprecated constant which will be removed in HA Core 2025.1. Use WaterHeaterEntityFeature.OPERATION_MODE instead, please create a bug report at https://github.com/jlvaillant/intellicenter/issues
2024-01-04 09:14:30.518 WARNING (MainThread) [homeassistant.components.water_heater] SUPPORT_TARGET_TEMPERATURE was used from intellicenter, this is a deprecated constant which will be removed in HA Core 2025.1. Use WaterHeaterEntityFeature.TARGET_TEMPERATURE instead, please create a bug report at https://github.com/jlvaillant/intellicenter/issues
2024-01-04 09:14:30.579 WARNING (MainThread) [homeassistant.components.light] Entity None (<class 'custom_components.intellicenter.light.PoolLight'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <LightEntityFeature: 0> and color modes, please create a bug report at https://github.com/jlvaillant/intellicenter/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
2024-01-04 09:14:30.579 WARNING (MainThread) [homeassistant.components.light] Entity None (<class 'custom_components.intellicenter.light.PoolLight'>) is using deprecated supported features values which will be removed in HA Core 2025.1. Instead it should use <LightEntityFeature: 0> and color modes, please create a bug report at https://github.com/jlvaillant/intellicenter/issues and reference https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
2024-01-04 09:14:30.579 ERROR (MainThread) [homeassistant.components.water_heater] Error adding entities for domain water_heater with platform intellicenter
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 662, in _async_add_entity
    capabilities=entity.capability_attributes,
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/water_heater/__init__.py", line 244, in capability_attributes
    if WaterHeaterEntityFeature.OPERATION_MODE in self.supported_features:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'int' is not iterable
2024-01-04 09:14:30.581 ERROR (MainThread) [homeassistant.components.water_heater] Error while setting up intellicenter platform for water_heater
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 368, in _async_setup_platform
    await asyncio.gather(*pending)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 507, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 662, in _async_add_entity
    capabilities=entity.capability_attributes,
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/water_heater/__init__.py", line 244, in capability_attributes
    if WaterHeaterEntityFeature.OPERATION_MODE in self.supported_features:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: argument of type 'int' is not iterable
dwradcliffe commented 10 months ago

Thanks that log is helpful. My system is off for the winter but I'll try to find some time to poke at the code this weekend and see if I can see what might be wrong.

jonoberheide commented 10 months ago

Looks like it's a regression that has been fixed in upstream HA: https://github.com/home-assistant/core/pull/107091

ntalekt commented 10 months ago

My water_heater entities reappeared after HA 2024.1.1 update.

humangenome commented 9 months ago

my spillway no longer shows up

Jizzay1 commented 8 months ago

my spillway no longer shows up

Same here not sure why