-
-
Notifications
You must be signed in to change notification settings - Fork 294
Temporary fix HA 0.115 UUID issue. Setup failed for sonoff: Requirements for sonoff not found: ['uuid']. #261
Comments
Funciono para mi, solo decir que hay que dejar las comillas self._imei = 'your uuid here' yo las quite y no funcionaba :-D gracias! |
It worked for me. Thanks! |
@tyjtyj You are right. But your line numbers are wrong, These are the correct ones. Generate UUID from a python command Replace line 26: Line 121: Line 134: |
For anyone unsure which file to edit:
|
Sorry, I am completely stuck as a newbie. I tried to install the AlexxIT-sonoff-ingetragtion with HACS, but I also ended up with this "requirements not found"-error. I do not understand what to do with the phyton-command. It should not be added to the init-file, right? I also checked my init-file but I could not find the mentioned lines. Searching the entire file for "requirements" or "websocket" failed. |
I found you only need to remove uuid from the requirements line, uuid is in the standard library. |
Hi unfortunately, Any suggestions how to fix? After install HomeAssistant Release 2020.12. I have got following: |
if you remove it right. there should be no uuid requirement. |
I found a way to fix this for good: Do |
@josrafafonlo, sorry if that is dummy question but where do you do 'pip install uuid'? It is clearly not in the file itself so where is it please? Thanks! |
UUID is some hex
Generate uuid from a python command
python -c 'import uuid; print(uuid.uuid4())'
or simply type any hex with the following format
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
eg. PLEASE CHANGE THIS
12345678-abcd-1234-abcd-123456789012
Open init.py file
Remove UUID requirement Line 45
REQUIREMENTS = ['websocket-client==0.54.0']
Comment out Line 210
#import uuid
Line 223
self._imei = 'your uuid here'
The text was updated successfully, but these errors were encountered: