From 5c62804b270286030590f113cc6541db33116e55 Mon Sep 17 00:00:00 2001 From: oscgonfer Date: Tue, 9 Apr 2024 14:02:57 +0200 Subject: [PATCH] Change device init method --- smartcitizen_connector/device/device.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/smartcitizen_connector/device/device.py b/smartcitizen_connector/device/device.py index aa28785..f10b53b 100644 --- a/smartcitizen_connector/device/device.py +++ b/smartcitizen_connector/device/device.py @@ -90,18 +90,13 @@ def check_postprocessing(postprocessing): return _hardware_url, _hardware_postprocessing, _ok class SCDevice: - id: int - url: str - page: str - timezone: str - json: Device - data: DataFrame def __init__(self, id, check_postprocessing=True): self.id = id self.url = f'{config.DEVICES_URL}{self.id}' self.page = f'{config.FRONTEND_URL}{self.id}' self.method = 'async' + self.data = DataFrame() self._metrics: List[Metric] = [] self.__load__() self.__get_timezone__()