opened
persil1971
username_0
Geniushub integration in configuration.yaml

geniushub:
  host: 192.168.86.43
  username: <my hub username>
  password: <my hub password>

--

Integration correctly creates climate entities.

--

Changing operational mode of climate entity produced the following error log message:

local variable 'ALLOWED_IMODES' referenced before assignment
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/components/websocket_api/commands.py", line 121, in handle_call_service
    connection.context(msg))
  File "/usr/src/app/homeassistant/core.py", line 1138, in async_call
    self._execute_service(handler, service_call))
  File "/usr/src/app/homeassistant/core.py", line 1160, in _execute_service
    await handler.func(service_call)
  File "/usr/src/app/homeassistant/helpers/entity_component.py", line 194, in handle_service
    required_features
  File "/usr/src/app/homeassistant/helpers/service.py", line 316, in entity_service_call
    future.result()  # pop exception if have
  File "/usr/src/app/homeassistant/helpers/service.py", line 336, in _handle_service_platform_call
    await getattr(entity, func)(**data)
  File "/usr/src/app/homeassistant/components/geniushub/climate.py", line 146, in async_turn_off
    await self._objref.set_mode(GH_OPMODE_OFF)
  File "/usr/local/lib/python3.7/site-packages/geniushubclient/__init__.py", line 746, in set_mode
    ALLOWED_IMODES += [ZONE_MODES.Footprint]
UnboundLocalError: local variable 'ALLOWED_IMODES' referenced before assignment
Geniushub integration Homeassistant 0.92.0
issue
created
awarecan
username_1
Please do not change our issue template
comment
created
awarecan
username_1
Will #23384 fixed the issue?

@username_2 can you make a separate PR only update the client lib?
comment
created
zxdavb
username_2
Of course. Give me time to eat dinner, and I'll have it out later tonight.  IN the meantime, would teh OP consider testing this PR #23384 ?
comment
created
zxdavb
username_2
@username_1 I sent a PR against master, hope that's OK.
comment
created
zxdavb
username_2
Yeah, sorry, rubbish - I've never submitted a bugfix PR before!
comment
closed
cgarwood
username_3
issue