Skip to content

yeelightbt got error, is it due to phyton version2? #23

@hamwong

Description

@hamwong

I am lake of using phyton, please kindly advise

[14:46:21] openhabian@OpenhabianPi:/usr/local/bin$ yeelightbt
Traceback (most recent call last):
File "/usr/local/bin/yeelightbt", line 9, in
load_entry_point('python-yeelightbt==0.0.3.1', 'console_scripts', 'yeelightbt')()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 356, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2476, in load_entry_point
return ep.load()
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2190, in load
['name'])
File "/usr/local/lib/python2.7/dist-packages/yeelightbt/init.py", line 2, in
from .lamp import Lamp
File "/usr/local/lib/python2.7/dist-packages/yeelightbt/lamp.py", line 192
def set_temperature(self, kelvin: int, brightness: int):
^
SyntaxError: invalid syntax

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions