rospogrigio / localtuya

local handling for Tuya devices
GNU General Public License v3.0
2.87k stars 554 forks source link

localtuya - No module named 'homeassistant.util.percentage' #774

Open andreastomincssi opened 2 years ago

andreastomincssi commented 2 years ago

Hi community,

first of all thank you much for the great work you did and you are doing!

If have an issue after installing the localtuya via HACS to my Home Assistant Core and adding the configuration in the configuration.yaml.

The error message I get after validation of configuration.yaml is "localtuya - No module named 'homeassistant.util.percentage'"

Do you have any hint for me how to fix it?

Thank you.

BR Andreas

JackTalisker commented 2 years ago

Which version of HA are you running?

andreastomincssi commented 2 years ago

System Health

version: 2021.1.5 installation_type: Home Assistant Core dev: false hassio: false docker: false virtualenv: true python_version: 3.7.3 os_name: Linux os_version: 5.4.83-v7+ arch: armv7l timezone: Europe/Vienna

GitHub API: ok Github API Calls Remaining: 4964 Installed Version: 1.11.3 Stage: running Available Repositories: 1007 Installed Repositories: 4

logged_in: false can_reach_cert_server: ok can_reach_cloud_auth: ok can_reach_cloud: ok

dashboards: 1 mode: storage views: 9 resources: 0

api_endpoint_reachable: ok

JackTalisker commented 2 years ago

I think the best thing to do first is to update HA to latest release

kupietools commented 2 years ago

This is not a good solution. I tried updating from my (very old, but totally 100% working for me) version of homeassistant, and it broke far more things than it fixed.