core: Plugwise add-on give error on startup HA

The problem

On the startup the log file shows error regarding the plugwise add-on

2022-12-01 20:07:28.783 ERROR (MainThread) [homeassistant.components.number] Error adding entities for domain number with platform plugwise
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 428, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 605, in _async_add_entity
    capabilities=entity.capability_attributes,
  File "/usr/src/homeassistant/homeassistant/components/number/__init__.py", line 249, in capability_attributes
    ATTR_MIN: self.min_value,
  File "/usr/src/homeassistant/homeassistant/components/number/__init__.py", line 280, in min_value
    return self._convert_to_state_value(self.native_min_value, floor_decimal)
  File "/usr/src/homeassistant/homeassistant/components/plugwise/number.py", line 119, in native_min_value
    return self.device[self.entity_description.key][
TypeError: 'float' object is not subscriptable
2022-12-01 20:07:28.816 ERROR (MainThread) [homeassistant.components.number] Error while setting up plugwise platform for number
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 289, in _async_setup_platform
    await asyncio.gather(*pending)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 428, in async_add_entities
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 605, in _async_add_entity
    capabilities=entity.capability_attributes,
  File "/usr/src/homeassistant/homeassistant/components/number/__init__.py", line 249, in capability_attributes
    ATTR_MIN: self.min_value,
  File "/usr/src/homeassistant/homeassistant/components/number/__init__.py", line 280, in min_value
    return self._convert_to_state_value(self.native_min_value, floor_decimal)
  File "/usr/src/homeassistant/homeassistant/components/plugwise/number.py", line 119, in native_min_value
    return self.device[self.entity_description.key][
TypeError: 'float' object is not subscriptable

What version of Home Assistant Core has the issue?

Home Assistant 2022.11.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Plugwise - Smile

Link to integration documentation on our website

https://www.home-assistant.io/integrations/plugwise/

Diagnostics information

config_entry-plugwise-57119fe83da466285b2fad4e9963bd39.json.txt

Example YAML snippet

No response

Anything in the logs that might be useful for us?

See first message

Additional information

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (8 by maintainers)

Most upvoted comments

And with that you mean a case regarding that i’m unable to change the max. temperature ? Which normally should’ve worked?

Yes, I would expect this to work for your device. I might be wrong but you can at least ask them if this should work for your system.