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

Entity None #199

Open
ond000 opened this issue Apr 20, 2024 · 0 comments
Open

Entity None #199

ond000 opened this issue Apr 20, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ond000
Copy link

ond000 commented Apr 20, 2024

Describe the bug
I have Candy oven connected by this integration and in HA log I found this warning, with information, that I should create bug, please see Home Assistant Logs

To Reproduce

Expected behavior

Screenshots

Environment (please complete the following information):

  • Home Assistant Version: 2024.4.3
  • hOn Integration Version v0.13.0
  • pyhOn Version:

Additional context

Home Assistant Logs
Logger: homeassistant.components.climate
Zdroj: components/climate/init.py:367
integrace: Klima (dokumentace, problémy)
První výskyt: 21:33:10 (1 výskyty)
Naposledy logováno: 21:33:10

Entity None (<class 'custom_components.hon.climate.HonClimateEntity'>) implements HVACMode(s): heat, off and therefore implicitly supports the turn_on/turn_off methods without setting the proper ClimateEntityFeature. Please create a bug report at https://github.com/Andre0512/hon/issues

Device Log
When I follow step what was wrote here I just got this error in log:

Logger: homeassistant.components.websocket_api.http.connection
Zdroj: components/websocket_api/commands.py:239
integrace: Home Assistant WebSocket API (dokumentace, problémy)
První výskyt: 22:15:15 (4 výskyty)
Naposledy logováno: 22:17:16

[546465915968] str returned non-string (type int)
[545930677440] str returned non-string (type int)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 239, in handle_call_service
response = await hass.services.async_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2543, in async_call
response_data = await coro
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/core.py", line 2580, in _execute_service
return await target(service_call)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 971, in entity_service_call
single_response = await _handle_entity_call(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1043, in _handle_entity_call
result = await task
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/button/init.py", line 138, in _async_press_action
await self.async_press()
File "/config/custom_components/hon/button.py", line 94, in async_press
info = f"{self._device.diagnose}{versions}"
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyhon/appliance.py", line 246, in diagnose
return diagnose.yaml_export(self, anonymous=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyhon/diagnose.py", line 92, in yaml_export
result = printer.pretty_print({"data": data})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyhon/printer.py", line 43, in pretty_print
result += pretty_print(
^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyhon/printer.py", line 43, in pretty_print
result += pretty_print(
^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/pyhon/printer.py", line 43, in pretty_print
result += pretty_print(
^^^^^^^^^^^^^
[Previous line repeated 1 more time]
File "/usr/local/lib/python3.12/site-packages/pyhon/printer.py", line 51, in pretty_print
result += f"{space}{'- ' if is_list else ''}{key}{': ' if key else ''}{data}\n"
^^^^^^
TypeError: str returned non-string (type int)

Data Archive
ov_1002.zip

@ond000 ond000 added the bug Something isn't working label Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants