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

Beta 2021.12.0b0 Error #196

Closed
enkama opened this issue Dec 3, 2021 · 11 comments
Closed

Beta 2021.12.0b0 Error #196

enkama opened this issue Dec 3, 2021 · 11 comments
Assignees
Labels
bug Something isn't working

Comments

@enkama
Copy link

enkama commented Dec 3, 2021

Entity camera.xiaomi_cloud_map_extractor (<class 'custom_components.xiaomi_cloud_map_extractor.camera.VacuumCamera'>) implements device_state_attributes. Please report it to the custom component author.

@enkama
Copy link
Author

enkama commented Dec 3, 2021

Also this:

/config/custom_components/xiaomi_cloud_map_extractor/camera.py:148: DeprecationWarning: Call to deprecated function __init__ (This class will become the base class for all vacuum implementations. Use RoborockVacuum to control roborock vacuums.).
  self._vacuum = miio.Vacuum(host, token)

@PiotrMachowski PiotrMachowski self-assigned this Dec 4, 2021
@hmmbob
Copy link

hmmbob commented Dec 4, 2021

Requested more info in the #beta channel on Discord, got this info:

image

@PiotrMachowski PiotrMachowski added the bug Something isn't working label Dec 4, 2021
@PiotrMachowski
Copy link
Owner

Thanks @hmmbob! It looks like it was not included in breaking changes

@enkama
Copy link
Author

enkama commented Dec 8, 2021

So yeah.. Your custom_components its causing some DeprecationWarnings in HA-Core component Harmony and pychromecast. Read here. home-assistant/core#60952 (comment) Would help myself but I am not really sure on what to search for.

@PiotrMachowski
Copy link
Owner

@Wibias damn, this is weird... I need to investigate it

@hmmbob
Copy link

hmmbob commented Dec 10, 2021

I can confirm - disabling this component stops throwing the depr warnings (which are sent as debug AFAIK). See also home-assistant/core#61336

@PiotrMachowski probably this line?

logging.getLogger().setLevel(logging.DEBUG)

@PiotrMachowski
Copy link
Owner

@hmmbob this file is not included in the integration

@hmmbob
Copy link

hmmbob commented Dec 11, 2021

I feel stupid 😬

Yet, disabling this component gets rid of the warnings, and when this component is enabled again the warnings re-appear. Weird 🤷🏻

@PiotrMachowski
Copy link
Owner

I will investigate it, just give me some time ;)

@joe248
Copy link

joe248 commented Dec 11, 2021

I'm seeing this in my log periodically after upgrading to 2021.12:

DeprecationWarning: with timeout() is deprecated, use async with timeout() instead

It doesn't specify which integration the error pertains to, but when I uninstall the cloud map extractor it goes away.

@PiotrMachowski
Copy link
Owner

Problem should be solved in v2.1.2

Not sure about other integrations though (#196 (comment))

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

Successfully merging a pull request may close this issue.

4 participants