peterbuga / HASS-sonoff-ewelink

Home Assistant component to control Sonoff/eWeLink devices with original firmware
MIT License
792 stars 296 forks source link

SonOff not work on Home Assistant 2021.1.1 #278

Open hellresistor opened 3 years ago

hellresistor commented 3 years ago

Hello try use this repository on Home Assistant 2021.1.1 and get error about uiid

Log Home Assistent:

2021-01-11 19:38:28 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for sonoff which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2021-01-11 19:38:32 ERROR (SyncWorker_1) [homeassistant.util.package] Unable to install package uuid: ERROR: Could not find a version that satisfies the requirement uuid==1000000000.0.0 (from -c /usr/src/homeassistant/homeassistant/package_constraints.txt (line 59)) (from versions: 1.30)
ERROR: No matching distribution found for uuid==1000000000.0.0 (from -c /usr/src/homeassistant/homeassistant/package_constraints.txt (line 59))
WARNING: You are using pip version 20.2.4; however, version 20.3.3 is available.
You should consider upgrading via the '/usr/local/bin/python3 -m pip install --upgrade pip' command.
2021-01-11 19:38:32 ERROR (MainThread) [homeassistant.setup] Setup failed for sonoff: Requirements for sonoff not found: ['uuid'].

Shouldn't be pip .... ?! o0

hansharhoff commented 3 years ago

The uuid issue can be resolved by simply removing the requirement for uuid in the file init.py on line 26.