Skip to content
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

Revert back from energy to power sensor and solve HA 2023.3.1 issues #156

Merged
merged 2 commits into from
Mar 3, 2023

Conversation

robinostlund
Copy link
Contributor

@robinostlund robinostlund commented Mar 3, 2023

This solves the issues that we currently have with HA 2023.3.1

@robinostlund
Copy link
Contributor Author

@mitch-dc here is a new PR

@mitch-dc mitch-dc merged commit b1efa1d into mitch-dc:main Mar 3, 2023
@northalpha
Copy link
Contributor

I guess this is for following error (putting it in here for people to find it):

2023-03-03 08:47:11.368 ERROR (MainThread) [homeassistant.loader] Unexpected exception importing platform custom_components.volkswagen_we_connect_id.sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 779, in get_platform
    cache[full_name] = self._import_platform(platform_name)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 796, 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 "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/config/custom_components/volkswagen_we_connect_id/sensor.py", line 100, in <module>
    device_class=SensorDeviceClass.energy,
  File "/usr/local/lib/python3.10/enum.py", line 437, in __getattr__
    raise AttributeError(name) from None
AttributeError: energy

@TravisWilder
Copy link

fyi .. 0.1.5 and 2023.3.1 is working for me again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants