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

XNumber/XPulseWidth is overriding deprecated methods on an instance of NumberEntity #897

Closed
hmmbob opened this issue Jul 7, 2022 · 19 comments
Labels
enhancement New feature or request
Milestone

Comments

@hmmbob
Copy link
Contributor

hmmbob commented Jul 7, 2022

Newest release 3.1.0 gives the following warnings in HA logs:

2022-07-07 12:53:53 WARNING (MainThread) [homeassistant.components.number] custom_components.sonoff.number::XNumber is overriding deprecated methods on an instance of NumberEntity, this is not valid and will be unsupported from Home Assistant 2022.10. Please report it to the custom component author.
2022-07-07 12:53:53 WARNING (MainThread) [homeassistant.components.number] custom_components.sonoff.number::XPulseWidth is overriding deprecated methods on an instance of NumberEntity, this is not valid and will be unsupported from Home Assistant 2022.10. Please report it to the custom component author.
2022-07-07 12:53:53 WARNING (MainThread) [homeassistant.components.number] custom_components.sonoff.number::XPulseWidth is overriding deprecated methods on an instance of NumberEntity, this is not valid and will be unsupported from Home Assistant 2022.10. Please report it to the custom component author.

All works fine at the moment.

edit: TO OTHER USERS: no need to report 'same here' or alike messages. Your component is still working fine, this is a dev warning. IF you want to report that you are seeing the same, just hit the thumbs-up button in this post.

@AlexxIT AlexxIT added the enhancement New feature or request label Jul 7, 2022
@khaisilk1910
Copy link

Screenshot_2022-07-07-18-39-24-833_io homeassistant companion android

@merrilr
Copy link

merrilr commented Jul 7, 2022

Thanks for reporting. Was about to report this

@pickonedev
Copy link

Same problem here

@Papi77
Copy link

Papi77 commented Jul 7, 2022

Same here…

@smarthomefamilyverrips
Copy link

#903

Using the changes in this commit/pull request worked for me. Thanks!

@Claudio-bo
Copy link

Greetings,
As I have not figured out how I can solve this problem. Because the home assistant is restarted continuously and then in the end it does not start anymore and I am forced to close and reopen the rasp.
thank you

@hmmbob
Copy link
Contributor Author

hmmbob commented Jul 27, 2022

You have a different issue - this issue will not cause that behavior - it is just a warning.

@snp88
Copy link

snp88 commented Sep 1, 2022

Any news regarding this issue ?
according message one month left to fix this

@AlexxIT AlexxIT added this to the v3.2.0 milestone Sep 2, 2022
@AlexxIT AlexxIT closed this as completed Sep 2, 2022
@pickonedev
Copy link

I still get errors for some devices, even after the new v3.2.0 update


Logger: homeassistant.components.number
Source: components/number/__init__.py:354
Integration: Number ([documentation](https://www.home-assistant.io/integrations/number), [issues](https://github.com/home-assistant/home-assistant/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+number%22))
First occurred: 23:35:42 (2 occurrences)
Last logged: 23:35:42

    Entity number.sonoff_circuit_breaker_balcony_ac_pulsewidth (<class 'custom_components.sonoff.number.XPulseWidth'>) is using deprecated NumberEntity features which will be unsupported from Home Assistant Core 2022.10, please report it to the custom integration author.
    Entity number.sonoff_bathroom_toothbrush_pulsewidth (<class 'custom_components.sonoff.number.XPulseWidth'>) is using deprecated NumberEntity features which will be unsupported from Home Assistant Core 2022.10, please report it to the custom integration author.

@AlexxIT
Copy link
Owner

AlexxIT commented Sep 5, 2022

Are you sure you using v3.2.0?

@pickonedev
Copy link

pickonedev commented Sep 5, 2022

Are you sure you using v3.2.0?

Yes. v3.2.0
I was so happy to get rid of that error, updating to this version, but still, only some devices, not all, are getting that error.
The "funny" part is that I have identical devices with these two which shows that error, with the same firmware, with everything the same, but only these two devices are doing like this.

Edit: only 1-2 devices from more than 50 :-D

Edit2: I think I found out why these two are getting me this error. I have enabled 3 of the entities, which I use in automation.

image

@khaisilk1910
Copy link

Are you sure you using v3.2.0?
I confirm still this error with version 3.2.

@pickonedev
Copy link

Are you sure you using v3.2.0?
I confirm still this error with version 3.2.

Check it, maybe you done what I done as well :-D Disabling those entities, will remove the error

@khaisilk1910
Copy link

Are you sure you using v3.2.0?
I confirm still this error with version 3.2.

Check it, maybe you done what I done as well :-D Disabling those entities, will remove the error

Currently I still see this error message in Logger.
How to fix that.
Many thank!

Logger: homeassistant.components.number
Source: components/number/init.py:354
Integration: Number (documentation, issues)
First occurred: 6:10:59 AM (2 occurrences)
Last logged: 6:10:59 AM

Entity number.sonoff_10008f942f_pulsewidth (<class 'custom_components.sonoff.number.XPulseWidth'>) is using deprecated NumberEntity features which will be unsupported from Home Assistant Core 2022.10, please report it to the custom integration author.
Entity number.sonoff_1000e7f0d1_pulsewidth (<class 'custom_components.sonoff.number.XPulseWidth'>) is using deprecated NumberEntity features which will be unsupported from Home Assistant Core 2022.10, please report it to the custom integration author.

@khaisilk1910
Copy link

Are you sure you using v3.2.0?
I confirm still this error with version 3.2.

Check it, maybe you done what I done as well :-D Disabling those entities, will remove the error

I disabled it.
Thanks!

@Kalma-House
Copy link

Hi everyone,

I still get the error for one device. I am on v3.2.0 of the integration (that is what HACS says). My version of HA is 2022.7.2. The entity 'number.sonoff_10002c57c2_pulseWidth' is already disabled. However the log mentions the entity 'sonoff.sonoff_10002c57c2_pulseWidth', which is nonexistent.

This are the warnings in the log:
2022-09-10 01:00:06 WARNING (MainThread) [homeassistant.components.number] custom_components.sonoff.number::XNumber is overriding deprecated methods on an instance of NumberEntity, this is not valid and will be unsupported from Home Assistant 2022.10. Please report it to the custom component author.
2022-09-10 01:00:06 WARNING (MainThread) [homeassistant.components.number] custom_components.sonoff.number::XPulseWidth is overriding deprecated methods on an instance of NumberEntity, this is not valid and will be unsupported from Home Assistant 2022.10. Please report it to the custom component author.
2022-09-10 01:00:06 WARNING (MainThread) [homeassistant.components.number] custom_components.sonoff.number::XPulseWidth is overriding deprecated methods on an instance of NumberEntity, this is not valid and will be unsupported from Home Assistant 2022.10. Please report it to the custom component author.
2022-09-10 01:00:24 WARNING (MainThread) [homeassistant.components.number] Entity sonoff.sonoff_10002c57c2_pulseWidth (<class 'custom_components.sonoff.number.XPulseWidth'>) is using deprecated NumberEntity features which will be unsupported from Home Assistant Core 2022.10, please report it to the custom component author.

Thanks.

@TTLucian
Copy link

I also am having this issue as soon as I enable number.sonoff_switch_pulsewidth entities.

@AlexxIT
Copy link
Owner

AlexxIT commented Sep 24, 2022

Will be fixed again

@Kalma-House
Copy link

No need to fix anything in my case.

After I upgraded to HA 2022.09.1 the warnings in the log stopped.

Sorry for not mentioning it before.

Thanks for all your work.

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

No branches or pull requests