Files
aufbau2csv/idoit_scaleup/cat_power_consumer.py
Sven Riwoldt e06c448a46 Idoit-Tests 01
2024-12-15 14:38:48 +01:00

14 lines
335 B
Python
Executable File

from .consts import C__CATG__POWER_CONSUMER
from .category import IDoitCategory
class IDoitPowerConsumer(IDoitCategory):
CATEGORY = C__CATG__POWER_CONSUMER
def __init__(self, cfg):
super().__init__(cfg, self.CATEGORY)
def convert_field_with_name_active(self, data):
return int(data['active']['value'])