From 49c1ce05373e199e1b0e1089b31606b2862249a4 Mon Sep 17 00:00:00 2001 From: Mario Coray Date: Mon, 8 Jul 2024 11:59:05 +0200 Subject: [PATCH] remove unused method --- smartmeter_datacollector/smartmeter/obis.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/smartmeter_datacollector/smartmeter/obis.py b/smartmeter_datacollector/smartmeter/obis.py index 45ac445..4e2072b 100644 --- a/smartmeter_datacollector/smartmeter/obis.py +++ b/smartmeter_datacollector/smartmeter/obis.py @@ -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)