Skip to content

Commit

Permalink
removed some empty lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Julius2342 committed Jan 10, 2018
1 parent 3eece99 commit 7034736
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion xknx/knx/address_filter.py
Expand Up @@ -54,7 +54,6 @@ def match(self, address):
return self._match_level2(address)
elif len(self.level_filters) == 1:
return self._match_free(address)

return False

def _match_level3(self, address):
Expand Down
6 changes: 0 additions & 6 deletions xknx/knx/dpt_hvac_mode.py
@@ -1,9 +1,7 @@
"""Implementation of different KNX DPT HVAC Operation modes."""

from enum import Enum

from xknx.exceptions import CouldNotParseKNXIP

from .dpt import DPTBase


Expand Down Expand Up @@ -38,7 +36,6 @@ def from_knx(cls, raw):
return HVACOperationMode.COMFORT
elif raw[0] == 0x00:
return HVACOperationMode.AUTO

raise CouldNotParseKNXIP("Could not parse HVACOperationMode")

@classmethod
Expand All @@ -54,7 +51,6 @@ def to_knx(cls, value):
return (3,)
elif value == HVACOperationMode.FROST_PROTECTION:
return (4,)

raise CouldNotParseKNXIP("Could not parse HVACOperationMode")


Expand All @@ -81,7 +77,6 @@ def from_knx(cls, raw):
return HVACOperationMode.STANDBY
elif raw[0] & 1 > 0:
return HVACOperationMode.COMFORT

raise CouldNotParseKNXIP("Could not parse HVACOperationMode")

@classmethod
Expand All @@ -98,5 +93,4 @@ def to_knx(cls, value):
return (0x24,)
elif value == HVACOperationMode.FROST_PROTECTION:
return (0x28,)

raise CouldNotParseKNXIP("Could not parse HVACOperationMode")

0 comments on commit 7034736

Please sign in to comment.