Skip to content

Air purifier: defaultdict used for safety and transparency#49

Merged
rytilahti merged 3 commits intorytilahti:masterfrom
syssi:feature/airpurifier-property-limit
Sep 3, 2017
Merged

Air purifier: defaultdict used for safety and transparency#49
rytilahti merged 3 commits intorytilahti:masterfrom
syssi:feature/airpurifier-property-limit

Conversation

@syssi
Copy link
Copy Markdown
Collaborator

@syssi syssi commented Sep 3, 2017

I like to avoid property errors. cp. syssi/xiaomi_airpurifier#4

"count (%s) of received values.",
properties_count, values_count)

return CeilStatus(defaultdict(lambda: None, zip(properties, values)))
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 'CeilStatus'
undefined name 'defaultdict'

"count (%s) of received values.",
properties_count, values_count)

return AirPurifierStatus(defaultdict(lambda: None, zip(properties, values)))
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

line too long (84 > 79 characters)

@syssi
Copy link
Copy Markdown
Collaborator Author

syssi commented Sep 3, 2017

I would be happy about a bugfix release.

@rytilahti
Copy link
Copy Markdown
Owner

Looks good, thanks.

@rytilahti rytilahti merged commit 0a28bde 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.

3 participants