replacing import logging (#425)

This commit is contained in:
Normann
2025-01-27 21:18:15 +01:00
committed by GitHub
parent 6743d8df4f
commit 1bb74ed836
3 changed files with 7 additions and 8 deletions

View File

@@ -1,6 +1,7 @@
import logging
from typing import List, Sequence
from akkudoktoreos.core.logging import get_logger
class Heatpump:
MAX_HEAT_OUTPUT = 5000
@@ -21,7 +22,7 @@ class Heatpump:
def __init__(self, max_heat_output: int, hours: int):
self.max_heat_output = max_heat_output
self.hours = hours
self.log = logging.getLogger(__name__)
self.log = get_logger(__name__)
def __check_outside_temperature_range__(self, temp_celsius: float) -> bool:
"""Check if temperature is in valid range between -100 and 100 degree Celsius.