New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes for custom components made in Home Assistant 0.88 #2
Conversation
There is problem with volume control, on the device itself the volume is set correctly, but in Home Assistant: |
Maybe this is related?
|
@onkelbeh I think your problem is in the config of your devices. Set it up like its mentioned in the readme and you should be good to go Like this: enigma:
devices:
- host: 172.16.2.149
port: 80
name: dream_wz
timeout: 20
username: root
password: !secret enigma_password
- host: 172.16.2.150
port: 80
name: dream_k
icon: mdi:satellite-variant
timeout: 20
username: root
password: !secret enigma_password @adrianmihalko I think there is just a little delay until Home Assistant displays the correct volume. I didn´t change anything than the file structure and the new libaries, so the volume control should not got broken by this change. |
I must check what cause the delay, because it was worked perfectly before. 🤷♂️ |
@sechsbug |
Home Assistant made some changes in Version 0.88 for custom components.
Fixes this error:
Traceback (most recent call last): File “/usr/local/lib/python3.7/site-packages/homeassistant/loader.py”, line 147, in _load_file module = importlib.import_module(path) File “/usr/local/lib/python3.7/importlib/init.py”, line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File “<frozen importlib._bootstrap>”, line 1006, in _gcd_import File “<frozen importlib._bootstrap>”, line 983, in _find_and_load File “<frozen importlib._bootstrap>”, line 962, in _find_and_load_unlocked ModuleNotFoundError: No module named ‘custom_components.enigma.media_player’; ‘custom_components.enigma’ is not a package
Further information:
New file structure
New Location of media_player constants