Closed digi303 closed 1 year ago
Sorry the instructions for a manual installation were out of date. I have now updated them, please have a look at https://github.com/FaserF/ha-deutschebahn#2-manual
The version you were using is the current development version, which is not functional, as I am preparing to integrate the config flow setup right now.
wegen Deutscher Bahn und dem Namen tippe ich mal auf deutsch :-) daher:
Hallo Fabian,
herzlichen Dank für die schnelle Antwort und den Hinweis. Jetzt funktioniert wieder alles wie es soll.
Lieben Dank,
Carsten
-----Original-Nachricht----- Betreff: Re: [FaserF/ha-deutschebahn] can't install integration (Issue #2) Datum: 2022-09-29T12:56:33+0200 Von: "Fabian Seitz" @.> An: "FaserF/ha-deutschebahn" @.>
Sorry the instructions for a manual installation were out of date. I have now updated them, please have a look at https://github.com/FaserF/ha-deutschebahn#2-manual The version you were using is the current development version, which is not functional, as I am preparing to integrate the config flow setup right now. — Reply to this email directly, view it on GitHub https://github.com/FaserF/ha-deutschebahn/issues/2#issuecomment-1262113056 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AWQC33XNKL4LE3C4LUDOO43WAVYVXANCNFSM6AAAAAAQYSRAFI . You are receiving this because you authored the thread.Message ID: @.> [ { @.": "http://schema.org", @.": "EmailMessage", "potentialAction": { @.": "ViewAction", "target": "https://github.com/FaserF/ha-deutschebahn/issues/2#issuecomment-1262113056", "url": "https://github.com/FaserF/ha-deutschebahn/issues/2#issuecomment-1262113056", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { @.***": "Organization", "name": "GitHub", "url": "https://github.com" } } ]
Unfortunately, I cannot get the integration installed. After downloading the ZIP file, I copy the complete folder "deutschebahn" into my custom-components folder of HA. After the restart and the corresponding creation of a sensor, the following error message appears:
_2022-09-29 11:01:31.335 ERROR (MainThread) [homeassistant.config] Platform error: sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config.py", line 878, in async_process_component_config platform = p_integration.get_platform(domain) File "/usr/src/homeassistant/homeassistant/loader.py", line 681, in get_platform cache[full_name] = self._import_platform(platform_name) File "/usr/src/homeassistant/homeassistant/loader.py", line 698, in _import_platform return importlib.import_module(f"{self.pkg_path}.{platform_name}") File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 992, in _find_and_load_unlocked
File "", line 241, in _call_with_frames_removed
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "", line 883, in exec_module
File "", line 241, in _call_with_frames_removed
File "/config/custom_components/deutschebahn/init.py", line 14, in
from .const import DOMAIN,CONF_SCAN_INTERVAL
ImportError: cannot import name 'CONF_SCAN_INTERVAL' from 'custom_components.deutschebahn.const' (/config/customcomponents/deutschebahn/const.py)
If I now additionally pack the 'init.py' directly into the custom-components directory, no single user integration starts any more. (alexa, etc.)
Am I doing something wrong?