HASwitchPlate / openHASP-custom-component

Home Assistant custom component for openHASP
https://www.openhasp.com
MIT License
51 stars 12 forks source link

Detected code that uses str (config) for entity category #91

Closed xtimmy86x closed 2 years ago

xtimmy86x commented 2 years ago

Hi to all, after the last update of Home Assistant Core 2022.1

the custom integration generate an error on Log:

"Detected code that uses str (config) for entity category. This is deprecated and will stop working in Home Assistant 2022.4, it should be updated to use EntityCategory instead. Please report this issue."

With previous core versione 2021 it's all perfect

fvanroie commented 2 years ago

It seems the be related to this line in the code: https://github.com/HASwitchPlate/openHASP-custom-component/blob/762e55fbe1cf8815a1d56ed2a5f55e94d40b79be/custom_components/openhasp/config_flow.py#L48

dgomes commented 2 years ago

It's actually https://github.com/HASwitchPlate/openHASP-custom-component/blob/762e55fbe1cf8815a1d56ed2a5f55e94d40b79be/custom_components/openhasp/config_flow.py#L62

fvanroie commented 2 years ago

Ha! Just to show I don't know a thing about the HA python CC api's 🤣

dgomes commented 2 years ago

fixed in 0.6.5