diff --git a/utils/extra.py b/utils/extra.py index d2746243..2d79d76b 100644 --- a/utils/extra.py +++ b/utils/extra.py @@ -286,8 +286,9 @@ class InvalidateType(enum.IntEnum): dm = 2 channel = 3 + class InvalidationConfig: - def __init__(self, entity_id : int, entity_type : InvalidateType): + def __init__(self, entity_id: int, entity_type: InvalidateType): self.entity_id = entity_id self.entity_type = entity_type @@ -307,8 +308,6 @@ def is_channel_invalidation(self) -> bool: """Checks if the configuration is for a specific channel's invalidation.""" return self.entity_type == InvalidateType.CHANNEL - - class TemperatureReadings: def __init__(self, celsius: float, fahrenheit: float, kelvin: float):