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

SwitchDevice is deprecated #9

Open
JOHLC opened this issue May 20, 2020 · 1 comment
Open

SwitchDevice is deprecated #9

JOHLC opened this issue May 20, 2020 · 1 comment

Comments

@JOHLC
Copy link

JOHLC commented May 20, 2020

Log Details (WARNING)
Logger: homeassistant.components.switch
Source: components/switch/init.py:125
Integration: Switch (documentation, issues)
First occurred: 11:29:32 AM (4 occurrences)
Last logged: 11:29:32 AM

SwitchDevice is deprecated, modify KonkeOutlet to extend SwitchEntity
SwitchDevice is deprecated, modify KonkeUsbSwitch to extend SwitchEntity
SwitchDevice is deprecated, modify KonkePowerStripOutlet to extend SwitchEntity
SwitchDevice is deprecated, modify KonkePowerStripUSB to extend SwitchEntity

@cachenow
Copy link

在switch.py里搜索SwitchDevice,全部修改为SwitchEntity,重启HA就可以了

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

No branches or pull requests

2 participants