kevinvincent / ha-wyzesense

A Home Assistant Component to interface with the WYZE Sense hub and sensor system
368 stars 97 forks source link

Config Check fails after Switching RPi 4 to SSD #214

Closed 51av0sh closed 3 years ago

51av0sh commented 3 years ago

A few days ago I migrated my pi setup from SD to SSD. Performed a full restore from my latest snapshot and had a few issues that needed to be fixed relating to the DB but everything else worked fine except the wyzesense integration. I can't get past the config check with the following error:

Platform error binary_sensor.wyzesense - cannot import name 'retry' from 'retry' (/usr/local/lib/python3.8/site-packages/retry/init.py)

I setup debug logging for the component but there is absolutely nothing in the logs about wyzesense or any errors

logger:
  default: info
  logs:
    custom_components.wyzesense: debug
    wyzesense.gateway: debug

I've tried removing the integration, removing HACS, and reinstalling but no dice (several times). I'm lost at this point. Any suggestions?

51av0sh commented 3 years ago

A little more context. I did a fresh install on a Raspberry Pi 4 B with the 64 bit version of 5.31

Also. I just tried removing and reinstalling using every version available and no matter which one I chose I get nothing under services for wyzesense. The only difference is I get the above config error on 0.11, 0.10, and 0.9 but on 0.8 and 0.7 the config check returns an error indicating the wyzesense service is not found:

Platform error binary_sensor.wyzesense - Integration 'wyzesense' not found.

51av0sh commented 3 years ago

Well. Looked over the code and noticed this line:

from retry import retry

Since my error was related I decided to manually install retry 0.9.2

https://pypi.org/project/retry/

pip install retry

I then installed wyzesense again, installed the bridge, rebooted.. and what do you know? No more errors and the service is now available :)

I hope this might help someone else. Cheers