almottier / TapoP100

A module for controlling the TP-Link Tapo P100 Plugs
MIT License
68 stars 18 forks source link

Fix for "SyntaxError: EOL while scanning string literal" #24

Closed mainde closed 4 months ago

mainde commented 4 months ago

I couldn't use the library until I removed this new line character, I was getting this error:

> Traceback (most recent call last):
>   File "xxx", line 1, in <module>
>     from PyP100 import PyP110
>   File "/home/xxx/.local/lib/python3.9/site-packages/PyP100/PyP110.py", line 1, in <mod                                                                                                                        ule>
>     from PyP100.PyP100 import Switchable, Metering
>   File "/home/xxx/.local/lib/python3.9/site-packages/PyP100/PyP100.py", line 39
>     f"Failed to initialize protocol {
>                                      ^
> SyntaxError: EOL while scanning string literal
> 
almottier commented 4 months ago

Thank you for pointing that out. It appears the typo was introduced in the most recent commit.