SDR3078 / ps3-home-assistant

Home Assistant integration for Sony PlayStation® 3 devices
Apache License 2.0
11 stars 3 forks source link

"Expected str" when adding #17

Closed Dante2202 closed 1 month ago

Dante2202 commented 1 month ago

Looks like you posted this in the HA forum as well, I am getting the same error when trying to set this up. ccdff38801690bc6245e60d21365a0e337dc81bb

I have added the ps3 folder to my custom_componenets folder inside my config folder but I cannot select a script or get past this page.

SDR3078 commented 1 month ago

Hi! I indeed did not fix this yet, currently working on it!

SDR3078 commented 1 month ago

@Dante2202 , can you check out the code in branch https://github.com/SDR3078/ps3-home-assistant/tree/bugfix_startup_script? If it's fixed there, I will merge it to main

Dante2202 commented 1 month ago

When I try adding "https://github.com/SDR3078/ps3-home-assistant/tree/bugfix_startup_script" from HACS in the custom repository there is no option to select the bugfix branch. I can only select Main or v0.1.0., when I select either one I still get the error. Screenshot 2024-07-03 205616

Dante2202 commented 1 month ago

Maybe I am doing something wrong but I cannot get the bugfix to download within HACS. I decided to manually edited the "config_flow.py" file and changed the line (TURN_ON_SCRIPT, default = None) to (TURN_ON_SCRIPT) and can confirm that the change did allow me to continue and add my PS3.

SDR3078 commented 1 month ago

Hi @Dante2202, you can just change the branch to bugfix_startup_script on github, and then download the code as zip. Following that, you just copy that code in your custom integrations folder. Then you start up Home Assistant again and you should be able to use that version. Let me know if it works!