From 318d9caf305a9c9dd68d9809f68423972f903a5d Mon Sep 17 00:00:00 2001 From: Mathieu Date: Mon, 13 Sep 2021 15:22:56 +0200 Subject: [PATCH] Added 404 error (windows) on homeassistant api in the readme --- README.md | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 58c70cb..aa7b666 100644 --- a/README.md +++ b/README.md @@ -42,11 +42,13 @@ go to the Python Console and enter the following commands : # Errors Common errors than I personally encoured during this project, hope this can help you. -### FANN/FANN2 error during pip requirements -#### Linux : -I actually don't know how I solved this but I tried building myself FANN following the instruction from [here](https://github.com/libfann/fann#from-source). -Here is some links I found trying to solve the error : +### FANN/FANN2 error during pip requirements + +#### Linux : + +I actually don't know how I solved this but I tried building myself FANN following the instruction +from [here](https://github.com/libfann/fann#from-source). Here is some links I found trying to solve the error : https://stackoverflow.com/questions/51367972/lib-fann2-failed-to-install https://github.com/FutureLinkCorporation/fann2/issues/11 https://github.com/MycroftAI/padatious#installing @@ -54,8 +56,17 @@ https://github.com/MycroftAI/padatious/issues/21 https://jansipke.nl/installing-fann-with-python-bindings-on-ubuntu/ #### Windows + Solution for windows users : + ``` pip install pipwin pipwin install fann2 ``` + +### Error 404 from the HomeAssistant API + +*/!\ Only Windows usually* +Returns an error 404 when requesting information about an entity_id, you need to edit the source code of the file " +rawapi.py" from the api. +Line 53 of rawapi.py must be changed from ``self.endpoint(path),`` to ``self.endpoint(path.replace('\\', '/')),`` \ No newline at end of file