-
Notifications
You must be signed in to change notification settings - Fork 11
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
Ha 2023.6.0 broke the integration #36
Comments
Same -- I had to comment/remark out all of mine to get past the errors. Hopefully this can be patched/fixed so we can use this add-on again. |
Can somebody please share the error log or propose a PR |
Sorry, i cant. I m so fool to have rebooted even if ha said there were errors...and now i m trying to rebuild the system.i haVe no access right now... |
Of course. Here's what home-assistant.log says: EDIT: Oh my, even when using the "code" tags the log looks terrible. I have attached the log as a text file instead. |
Looks like the upgrade to python 3.11 is what caused the break. I believe #37 fixes the issue (works on my machine, at least!) |
Here is a full error description: The problemIn 2023.06, the attribute seems to stop working. What version of Home Assistant Core has the issue?core-2023.6.0 What was the last working version of Home Assistant Core?core-2023.5.4 What type of installation are you running?Home Assistant Supervised Integration causing the issuecustom_components.attributes.sensor Link to integration documentation on our websiteNo response Diagnostics informationNo response Example YAML snippetsensor:
- platform: attributes
friendly_name: Temperatur Ist
attribute: current_temperature
unit_of_measurement: °C
entities:
- climate.arbeitszimmer
- climate.bad
- climate.esszimmer
#- climate.floor
- climate.gastezimmer
- climate.kuche
- climate.lego
- climate.schlafzimmer_wand
- climate.wc
- climate.wohnzimmer
- platform: attributes
friendly_name: Temperatur Soll
attribute: temperature
unit_of_measurement: °C
entities:
- climate.arbeitszimmer
- climate.bad
- climate.esszimmer
#- climate.floor
- climate.gastezimmer
- climate.kuche
- climate.lego
- climate.schlafzimmer_wand
- climate.wc
- climate.wohnzimmer Anything in the logs that might be useful for us?Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht
Logger: homeassistant.loader
Source: custom_components/attributes/sensor.py:44
Integration: attributes (documentation, issues)
First occurred: 09:41:31 (14 occurrences)
Last logged: 14:33:28
Unexpected exception importing platform custom_components.attributes.sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/loader.py", line 833, in get_platform
cache[full_name] = self._import_platform(platform_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 850, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1206, in _gcd_import
File "<frozen importlib._bootstrap>", line 1178, in _find_and_load
File "<frozen importlib._bootstrap>", line 1149, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 940, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/config/custom_components/attributes/sensor.py", line 44, in <module>
@asyncio.coroutine
^^^^^^^^^^^^^^^^^
AttributeError: module 'asyncio' has no attribute 'coroutine' Additional informationIn previous HomeAssistant version, all worked fine |
With the fix, all works fine. I think you should merge it into master |
fixed in release v1.2.1 |
As soon as updating Ha It won t pass the reboot controls sayng that the yaml file has errors about extracting sensor attributes for every sensor i created using this custom integration
The text was updated successfully, but these errors were encountered: