Skip to content
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

Merged
merged 6 commits into from Sep 3, 2017

Conversation

syssi
Copy link
Collaborator

@syssi syssi commented Sep 3, 2017

No description provided.

# It looks like philips devices cannot be discovered via mdns
"philips-light-bulb": Ceil,
"philips-light-ceil": Ceil,
"philips-light-sread1": PhilipsEyecare,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

undefined name 'PhilipsEyecare'

#"yunmi-waterpuri-v2": WaterPurifier,
# It looks like philips devices cannot be discovered via mdns
"philips-light-bulb": Ceil,
"philips-light-ceil": Ceil,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

undefined name 'Ceil'

#"zhimi-humidifier-v1": Humidifier,
#"yunmi-waterpuri-v2": WaterPurifier,
# It looks like philips devices cannot be discovered via mdns
"philips-light-bulb": Ceil,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

undefined name 'Ceil'

"zhimi-airpurifier-v3": AirPurifier,
"zhimi-airpurifier-v6": AirPurifier,
#"zhimi-humidifier-v1": Humidifier,
#"yunmi-waterpuri-v2": WaterPurifier,

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 '# '

"zhimi-airpurifier-v2": AirPurifier,
"zhimi-airpurifier-v3": AirPurifier,
"zhimi-airpurifier-v6": AirPurifier,
#"zhimi-humidifier-v1": Humidifier,

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 '# '

"chuangmi-plug-v2": Plug,
"qmi-powerstrip-v1": Strip,
"zimi.powerstrip.v2": Strip,
"chuangmi-plug-v1": PlugV1,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

undefined name 'PlugV1'

"chuangmi-plug-m1": Plug,
"chuangmi-plug-v2": Plug,
"qmi-powerstrip-v1": Strip,
"zimi.powerstrip.v2": Strip,

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,
"qmi-powerstrip-v1": Strip,

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,

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,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

undefined name 'Plug'

@@ -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

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)

@@ -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

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

@syssi
Copy link
Collaborator Author

syssi commented Sep 3, 2017

New highscore. 15 complains on 18 lines changed . ;-) Next time I will spin-up the IDE from the very first.

@rytilahti
Copy link
Owner

Thanks a bunch for doing this, it will help to make a nicer device handling possible later on :-)

@coveralls
Copy link

coveralls commented Sep 3, 2017

Coverage Status

Coverage remained the same at 30.952% when pulling 5e03300 on syssi:feature/mdns-device-map into b0aa3d6 on rytilahti:master.

@rytilahti rytilahti merged commit 89f4a6c into rytilahti:master Sep 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants