Skip to content

HomeMatic optimizations and code cleanup#7986

Merged
pvizeli merged 4 commits into
home-assistant:devfrom
danielperna84:HomeMatic
Jun 10, 2017
Merged

HomeMatic optimizations and code cleanup#7986
pvizeli merged 4 commits into
home-assistant:devfrom
danielperna84:HomeMatic

Conversation

@danielperna84
Copy link
Copy Markdown
Contributor

Description:

Minor optimizations and some code cleanup. Especially getting rid of some unneeded debug-logs as requested by @pvizeli .
Looking good?

def _init_data_struct(self):
"""Generate a data dict (self._data) from the Homematic metadata."""
# Use STATE
"""Generate the data dictionary (self._data) from the HomeMatic metadata."""
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)

def _init_data_struct(self):
"""Generate a data struct (self._data) from the Homematic metadata."""
# add state to data struct
"""Generate the data dictionary (self._data) from the HomeMatic metadata."""
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)

self._data.update({self._state: STATE_UNKNOWN})
else:
_LOGGER.critical("Can't correctly init sensor %s", self._name)
_LOGGER.critical("Can't correctly initialize sensor %s", self._name)
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 (80 > 79 characters)

self._data.update({self._state: STATE_UNKNOWN})
else:
_LOGGER.critical("Can't correctly init sensor %s", self._name)
_LOGGER.critical("Can't correctly initialize sensor %s", self._name)
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 (80 > 79 characters)

@danielperna84 danielperna84 changed the title [WIP] HomeMatic optimizations and code cleanup HomeMatic optimizations and code cleanup Jun 9, 2017
Copy link
Copy Markdown
Member

@pvizeli pvizeli left a comment

Choose a reason for hiding this comment

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

Greate work 👍

@pvizeli pvizeli merged commit a19e7ba into home-assistant:dev Jun 10, 2017
@danielperna84 danielperna84 deleted the HomeMatic branch June 10, 2017 08:16
@balloob balloob mentioned this pull request Jun 16, 2017
@home-assistant home-assistant locked and limited conversation to collaborators Oct 20, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants