Skip to content

Commit

Permalink
Change device init method
Browse files Browse the repository at this point in the history
  • Loading branch information
oscgonfer committed Apr 9, 2024
1 parent 1722d67 commit 5c62804
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions smartcitizen_connector/device/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__()
Expand Down

0 comments on commit 5c62804

Please sign in to comment.