hekm77 / homeassistant-config

My Home Assistant ⚙️

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SwitchDevice is deprecated, modify XiaomiMiioGenericDevice to extend SwitchEntity

lolfonfire opened this issue · comments

Hi,

I've been using your custom component for months now.
Yesterday Home Assisant v0.110.0 was released.
Since then I see this error message when I reboot Home Assistant:
[homeassistant.components.switch] SwitchDevice is deprecated, modify XiaomiMiioGenericDevice to extend SwitchEntity

They have been fixing related things for official integrations.
But they won't fix custom components of course.
Is there anything I can do to fix this error?

This is my configuration.yaml:
image

Hi @lolfonfire
The Xiaomi miio Alarm Control Panel has been added to Home Assistant 0.110
I think it's better to use official integration.
The custom component will be removed.

Hi @hekm77,

I must have overlooked it in the changelog.
I've removed your component and can confirm the official integration works.
Thanks for your help and the compoment which I've been using for months!
image