You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Добрый день.
Диммер работает, меняет яркость, но если на панели нажать кнопку включения/выключения - следующее:
Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/mega/entities.py:272
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 14:07:23 (50 occurrences)
Last logged: 14:14:17
[140172497421552] '>' not supported between instances of 'NoneType' and 'int'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 135, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1451, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1486, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 499, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 664, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 536, in _handle_entity_call
await result
File "/config/custom_components/mega/entities.py", line 357, in async_turn_off
await self.get_state()
File "/config/custom_components/mega/entities.py", line 132, in get_state
self.lg.debug(f'state is %s', self.state)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 676, in state
return STATE_ON if self.is_on else STATE_OFF
File "/config/custom_components/mega/entities.py", line 272, in is_on
return val > 0 if not self.invert else val == 0
TypeError: '>' not supported between instances of 'NoneType' and 'int'
The text was updated successfully, but these errors were encountered:
Добрый день.
Диммер работает, меняет яркость, но если на панели нажать кнопку включения/выключения - следующее:
Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/mega/entities.py:272
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 14:07:23 (50 occurrences)
Last logged: 14:14:17
[140172497421552] '>' not supported between instances of 'NoneType' and 'int'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 135, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1451, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1486, in _execute_service
await handler.job.target(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await self.hass.helpers.service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 499, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 664, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 536, in _handle_entity_call
await result
File "/config/custom_components/mega/entities.py", line 357, in async_turn_off
await self.get_state()
File "/config/custom_components/mega/entities.py", line 132, in get_state
self.lg.debug(f'state is %s', self.state)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 676, in state
return STATE_ON if self.is_on else STATE_OFF
File "/config/custom_components/mega/entities.py", line 272, in is_on
return val > 0 if not self.invert else val == 0
TypeError: '>' not supported between instances of 'NoneType' and 'int'
The text was updated successfully, but these errors were encountered: