'homeassistant_cli.hassconst' has no attribute 'WS_TYPE_ENTITY_REGISTRY_GET'
Traceback (most recent call last):
File "/usr/local/Cellar/homeassistant-cli/0.9.0/libexec/lib/python3.8/site-packages/homeassistant_cli/cli.py", line 40, in run
result = cli.main(standalone_mode=False)
File "/usr/local/Cellar/homeassistant-cli/0.9.0/libexec/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/local/Cellar/homeassistant-cli/0.9.0/libexec/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/Cellar/homeassistant-cli/0.9.0/libexec/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/Cellar/homeassistant-cli/0.9.0/libexec/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/Cellar/homeassistant-cli/0.9.0/libexec/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/local/Cellar/homeassistant-cli/0.9.0/libexec/lib/python3.8/site-packages/click/decorators.py", line 73, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/usr/local/Cellar/homeassistant-cli/0.9.0/libexec/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/local/Cellar/homeassistant-cli/0.9.0/libexec/lib/python3.8/site-packages/homeassistant_cli/plugins/entity.py", line 81, in rename
entity = api.get_entity(ctx, oldid)
File "/usr/local/Cellar/homeassistant-cli/0.9.0/libexec/lib/python3.8/site-packages/homeassistant_cli/remote.py", line 274, in get_entity
frame = {'type': hass.WS_TYPE_ENTITY_REGISTRY_GET, 'entity_id': entity_id}
AttributeError: module 'homeassistant_cli.hassconst' has no attribute 'WS_TYPE_ENTITY_REGISTRY_GET'
λ python --version
Python 2.7.17
λ pyenv global 3.8.0λ hass-cli -x entity rename light.mini_sov light.bedroom_mini
module 'homeassistant_cli.hassconst' has no attribute 'WS_TYPE_ENTITY_REGISTRY_GET'
Traceback (most recent call last):
File "/usr/local/Cellar/homeassistant-cli/0.9.0/libexec/lib/python3.8/site-packages/homeassistant_cli/cli.py", line 40, in run
result = cli.main(standalone_mode=False)
File "/usr/local/Cellar/homeassistant-cli/0.9.0/libexec/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/local/Cellar/homeassistant-cli/0.9.0/libexec/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/Cellar/homeassistant-cli/0.9.0/libexec/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/Cellar/homeassistant-cli/0.9.0/libexec/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/Cellar/homeassistant-cli/0.9.0/libexec/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/local/Cellar/homeassistant-cli/0.9.0/libexec/lib/python3.8/site-packages/click/decorators.py", line 73, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
File "/usr/local/Cellar/homeassistant-cli/0.9.0/libexec/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/local/Cellar/homeassistant-cli/0.9.0/libexec/lib/python3.8/site-packages/homeassistant_cli/plugins/entity.py", line 81, in rename
entity = api.get_entity(ctx, oldid)
File "/usr/local/Cellar/homeassistant-cli/0.9.0/libexec/lib/python3.8/site-packages/homeassistant_cli/remote.py", line 274, in get_entity
frame = {'type': hass.WS_TYPE_ENTITY_REGISTRY_GET, 'entity_id': entity_id}
AttributeError: module 'homeassistant_cli.hassconst' has no attribute 'WS_TYPE_ENTITY_REGISTRY_GET'
"me too" with python 3.6.9. The hass-cli version 0.7.0 was working just fine. Upon doing pip3 install -U homeassistant-cli I was getting this same error reported.
λ hass-cli -x entity rename light.mini_sov light.bedroom_mini
λ python --version
λ pyenv global 3.8.0
λ hass-cli -x entity rename light.mini_sov light.bedroom_mini
λ rg 'WS_TYPE_ENTITY_REGISTRY_GET' /usr/local/Cellar/homeassistant-cli/0.9.0/libexec/lib/python3.8/site-packages