Andre0512 / hon

Home Assistant integration for Haier hOn: support for Haier/Candy/Hoover home appliances like washing machines and air conditioners in 28 languages.
MIT License
1.22k stars 2.5k forks source link

Entity None #199

Open ond000 opened 2 weeks ago

ond000 commented 2 weeks ago

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):

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