Skip to content

mDNS device map extended#51

Merged
rytilahti merged 6 commits intorytilahti:masterfrom
syssi:feature/mdns-device-map
Sep 3, 2017
Merged

mDNS device map extended#51
rytilahti merged 6 commits intorytilahti:masterfrom
syssi:feature/mdns-device-map

Conversation

@syssi
Copy link
Copy Markdown
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,
Copy link
Copy Markdown

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,
Copy link
Copy Markdown

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,
Copy link
Copy Markdown

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,
Copy link
Copy Markdown

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,
Copy link
Copy Markdown

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,
Copy link
Copy Markdown

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,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

undefined name 'Strip'

"rockrobo-vacuum-v1": Vacuum,
"chuangmi-plug-m1": Plug,
"chuangmi-plug-v2": Plug,
"qmi-powerstrip-v1": Strip,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

undefined name 'Strip'

_mdns_device_map = {
"rockrobo-vacuum-v1": Vacuum,
"chuangmi-plug-m1": Plug,
"chuangmi-plug-v2": Plug,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

undefined name 'Plug'

class Discovery:
_mdns_device_map = {
"rockrobo-vacuum-v1": Vacuum,
"chuangmi-plug-m1": Plug,
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

undefined name 'Plug'

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
Copy link
Copy Markdown

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)

import codecs
from typing import Any, List, Union, Callable
from mirobo import Message, Device, Vacuum
from typing import Union, Callable
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
Owner

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

@coveralls
Copy link
Copy Markdown

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.

4 participants