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

Hass 2024.1 error: _attr_device_class #1277

Closed
scooper1 opened this issue Dec 28, 2023 · 4 comments
Closed

Hass 2024.1 error: _attr_device_class #1277

scooper1 opened this issue Dec 28, 2023 · 4 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@scooper1
Copy link

after updating to 2024.1 beta, I am getting the following errors

2023-12-28 02:49:59.969 WARNING (MainThread) [custom_components.sonoff.core.ewelink] 1001875bc0 !! can't setup device
Traceback (most recent call last):
File "/config/custom_components/sonoff/core/ewelink/__init__.py", line 57, in setup_devices
entities += [cls(self, device) for cls in get_spec(device)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/sonoff/core/ewelink/__init__.py", line 57, in <listcomp>
entities += [cls(self, device) for cls in get_spec(device)]
^^^^^^^^^^^^^^^^^
File "/config/custom_components/sonoff/sensor.py", line 83, in __init__
self._attr_device_class = DEVICE_CLASSES.get(default_class)
^^^^^^^^^^^^^^^^^^^^^^^

@scooper1
Copy link
Author

this problem only happens on the powr320d
this device shows up ok in Ewelink app

but does not show in LAN or Internet mode

@scooper1 scooper1 changed the title possible 2024.1 beta issue with loading intregration possible 2024.1 beta issue with loading integration for powr320d Dec 29, 2023
@wvdb0
Copy link

wvdb0 commented Jan 1, 2024

Same problem. The device is no longer detected since a couple of days

@taljaardwp
Copy link

taljaardwp commented Jan 4, 2024

Same issue after updating to version 2024.1.0

2024-01-04 13:02:52.443 WARNING (MainThread) [custom_components.sonoff.core.ewelink] 10017fbc03 !! can't setup device
Traceback (most recent call last):
  File "/config/custom_components/sonoff/core/ewelink/__init__.py", line 57, in setup_devices
    entities += [cls(self, device) for cls in get_spec(device)]
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/sonoff/core/ewelink/__init__.py", line 57, in <listcomp>
    entities += [cls(self, device) for cls in get_spec(device)]
                 ^^^^^^^^^^^^^^^^^
  File "/config/custom_components/sonoff/sensor.py", line 83, in __init__
    self._attr_device_class = DEVICE_CLASSES.get(default_class)
    ^^^^^^^^^^^^^^^^^^^^^^^

@AlexxIT AlexxIT added the bug Something isn't working label Jan 4, 2024
@AlexxIT AlexxIT self-assigned this Jan 4, 2024
@AlexxIT AlexxIT changed the title possible 2024.1 beta issue with loading integration for powr320d Hass 2024.1 error: _attr_device_class Jan 4, 2024
@AlexxIT AlexxIT added this to the v3.5.4 milestone Jan 4, 2024
@AlexxIT
Copy link
Owner

AlexxIT commented Jan 4, 2024

@AlexxIT AlexxIT closed this as completed Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants