cyberjunky / home-assistant-custom-components

My custom components for Home Assistant
MIT License
70 stars 19 forks source link

Update climate.py to work again with HA 0.96 #38

Closed wwolkers closed 5 years ago

wwolkers commented 5 years ago

changed to support new climate updates from HA 0.96

timkoers commented 5 years ago

Could you merge this with my pull request #36? That makes it possible to turn the scheduling program on and off from Home Assistant.

rwit-ormer commented 5 years ago

Working mode 2019-08-05 23:46:33 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.1851769808] Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 121, in handle_call_service connection.context(msg)) File "/usr/src/homeassistant/homeassistant/core.py", line 1150, in async_call self._execute_service(handler, service_call)) File "/usr/src/homeassistant/homeassistant/core.py", line 1172, in _execute_service await handler.func(service_call) File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 194, in handle_service required_features File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 316, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 337, in _handle_service_platform_call await getattr(entity, func)(*data) File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 382, in async_set_hvac_mode await self.hass.async_add_executor_job(self.set_hvac_mode, hvac_mode) File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(self.args, **self.kwargs) File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 378, in set_hvac_mode raise NotImplementedError() NotImplementedError

Preset 2019-08-05 23:48:50 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.1851769808] Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 121, in handle_call_service connection.context(msg)) File "/usr/src/homeassistant/homeassistant/core.py", line 1150, in async_call self._execute_service(handler, service_call)) File "/usr/src/homeassistant/homeassistant/core.py", line 1172, in _execute_service await handler.func(service_call) File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 194, in handle_service required_features File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 316, in entity_service_call future.result() # pop exception if have File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 337, in _handle_service_platform_call await getattr(entity, func)(*data) File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 399, in async_set_preset_mode self.set_preset_mode, preset_mode) File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(self.args, **self.kwargs) File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 394, in set_preset_mode raise NotImplementedError() NotImplementedError

I'm on version 0.96.5

cyberjunky commented 5 years ago

Fixed in latest toon_climate code.