Skip to content
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

Unknow Issue #33

Open
cqu-william opened this issue Jan 15, 2025 · 0 comments
Open

Unknow Issue #33

cqu-william opened this issue Jan 15, 2025 · 0 comments

Comments

@cqu-william
Copy link

Version of the custom_component

Configuration

Add your logs here.

此错误来自自定义集成。

日志记录器: custom_components.vaillant_plus.climate
来源: custom_components/vaillant_plus/climate.py:59
集成: Vaillant Plus (文档, 问题)
首次出现: 09:42:10 (1 次总计出现)
上次记录: 09:42:10

Missing required attribute to setup Vaillant Climate. skip.

## Describe the bug
A clear and concise description of what the bug is.


## Debug log

<!-- To enable debug logs check this https://www.home-assistant.io/components/logger/ -->

```text

Add your logs here.

日志记录器: homeassistant.components.binary_sensor
来源: helpers/entity_platform.py:608
集成: 二元传感器 ([文档](https://www.home-assistant.io/integrations/binary_sensor), [问题](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+binary_sensor%22))
首次出现: 09:42:10 (1 次总计出现)
上次记录: 09:42:10

Error adding entity binary_sensor.boiler_need_refill_water for domain binary_sensor with platform vaillant_plus
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 608, in _async_add_entities
    await coro
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 927, in _async_add_entity
    await entity.add_to_platform_finish()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1383, in add_to_platform_finish
    await self.async_added_to_hass()
  File "/config/custom_components/vaillant_plus/entity.py", line 59, in async_added_to_hass
    self.update_from_latest_data(self.device_attrs)
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/vaillant_plus/binary_sensor.py", line 179, in update_from_latest_data
    self._attr_is_on = value.startswith("1")
                       ^^^^^^^^^^^^^^^^
AttributeError: 'int' object has no attribute 'startswith'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant