mirror of
				https://github.com/Akkudoktor-EOS/EOS.git
				synced 2025-10-30 22:36:21 +00:00 
			
		
		
		
	replacing import logging (#425)
This commit is contained in:
		| @@ -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. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user