-
-
Notifications
You must be signed in to change notification settings - Fork 569
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mDNS device map extended #51
Conversation
mirobo/discovery.py
Outdated
# It looks like philips devices cannot be discovered via mdns | ||
"philips-light-bulb": Ceil, | ||
"philips-light-ceil": Ceil, | ||
"philips-light-sread1": PhilipsEyecare, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
undefined name 'PhilipsEyecare'
mirobo/discovery.py
Outdated
#"yunmi-waterpuri-v2": WaterPurifier, | ||
# It looks like philips devices cannot be discovered via mdns | ||
"philips-light-bulb": Ceil, | ||
"philips-light-ceil": Ceil, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
undefined name 'Ceil'
mirobo/discovery.py
Outdated
#"zhimi-humidifier-v1": Humidifier, | ||
#"yunmi-waterpuri-v2": WaterPurifier, | ||
# It looks like philips devices cannot be discovered via mdns | ||
"philips-light-bulb": Ceil, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
undefined name 'Ceil'
mirobo/discovery.py
Outdated
"zhimi-airpurifier-v3": AirPurifier, | ||
"zhimi-airpurifier-v6": AirPurifier, | ||
#"zhimi-humidifier-v1": Humidifier, | ||
#"yunmi-waterpuri-v2": WaterPurifier, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
block comment should start with '# '
mirobo/discovery.py
Outdated
"zhimi-airpurifier-v2": AirPurifier, | ||
"zhimi-airpurifier-v3": AirPurifier, | ||
"zhimi-airpurifier-v6": AirPurifier, | ||
#"zhimi-humidifier-v1": Humidifier, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
block comment should start with '# '
mirobo/discovery.py
Outdated
"chuangmi-plug-v2": Plug, | ||
"qmi-powerstrip-v1": Strip, | ||
"zimi.powerstrip.v2": Strip, | ||
"chuangmi-plug-v1": PlugV1, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
undefined name 'PlugV1'
mirobo/discovery.py
Outdated
"chuangmi-plug-m1": Plug, | ||
"chuangmi-plug-v2": Plug, | ||
"qmi-powerstrip-v1": Strip, | ||
"zimi.powerstrip.v2": Strip, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
undefined name 'Strip'
mirobo/discovery.py
Outdated
@@ -46,6 +46,22 @@ def add_service(self, zeroconf, type, name): | |||
class Discovery: | |||
_mdns_device_map = { | |||
"rockrobo-vacuum-v1": Vacuum, | |||
"chuangmi-plug-m1": Plug, | |||
"chuangmi-plug-v2": Plug, | |||
"qmi-powerstrip-v1": Strip, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
undefined name 'Strip'
@@ -46,6 +46,22 @@ def add_service(self, zeroconf, type, name): | |||
class Discovery: | |||
_mdns_device_map = { | |||
"rockrobo-vacuum-v1": Vacuum, | |||
"chuangmi-plug-m1": Plug, | |||
"chuangmi-plug-v2": Plug, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
undefined name 'Plug'
@@ -46,6 +46,22 @@ def add_service(self, zeroconf, type, name): | |||
class Discovery: | |||
_mdns_device_map = { | |||
"rockrobo-vacuum-v1": Vacuum, | |||
"chuangmi-plug-m1": Plug, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
undefined name 'Plug'
mirobo/discovery.py
Outdated
@@ -4,7 +4,7 @@ | |||
import inspect | |||
import codecs | |||
from typing import Any, List, Union, Callable | |||
from mirobo import Message, Device, Vacuum | |||
from mirobo import Message, Device, Vacuum, Plug, PlugV1, Strip, AirPurifier, Ceil, PhilipsEyecare |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'mirobo.Message' imported but unused
line too long (98 > 79 characters)
mirobo/discovery.py
Outdated
@@ -3,8 +3,9 @@ | |||
import ipaddress | |||
import inspect | |||
import codecs | |||
from typing import Any, List, Union, Callable | |||
from mirobo import Message, Device, Vacuum | |||
from typing import Union, Callable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'typing.Union' imported but unused
'typing.Callable' imported but unused
New highscore. 15 complains on 18 lines changed . ;-) Next time I will spin-up the IDE from the very first. |
Thanks a bunch for doing this, it will help to make a nicer device handling possible later on :-) |
No description provided.