Skip to content

Commit

Permalink
remove unused method
Browse files Browse the repository at this point in the history
  • Loading branch information
raymar9 committed Jul 8, 2024
1 parent 151b3e2 commit 49c1ce0
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions smartmeter_datacollector/smartmeter/obis.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ def __str__(self) -> str:
def to_gurux_str(self) -> str:
return f"{self.a}.{self.b}.{self.c}.{self.d}.{self.e}.{self.f}"

def is_same_type(self, other: 'OBISCode') -> bool:
"""Compares only A, C, D, E parts of an OBIS code."""
return (self.a == other.a and
self.b == other.b and
self.c == other.c and
self.d == other.d)

@classmethod
def from_string(cls, obis_string: str) -> 'OBISCode':
match = cls.PATTERN.match(obis_string)
Expand Down

0 comments on commit 49c1ce0

Please sign in to comment.