shamruk/hass-components-sha

update to 2022.2 failure

sashaid opened this issue · 2 comments

Aafter update to 2022.2.6

Configuration invalid

Platform error switch.kincony-sha - cannot import name 'SwitchDevice' from 'homeassistant.components.switch' (/usr/src/homeassistant/homeassistant/components/switch/init.py)

Please help.

in /config/custom_components/kincony-sha/switch.py

change SwitchDevice to SwitchEntity on line 10 and line 70