just fixed some typological warnings
This commit is contained in:
parent
5ea6a0f125
commit
917949f671
|
@ -30,7 +30,5 @@ class ConcordiaEnergySensor(Sensor):
|
|||
def measures(self):
|
||||
self._measures.drop = None
|
||||
|
||||
|
||||
def add_period(self, period):
|
||||
self._measures.append(period)
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@ SPDX - License - Identifier: LGPL - 3.0 - or -later
|
|||
Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
|
||||
"""
|
||||
|
||||
|
||||
class Sensor:
|
||||
def __init__(self):
|
||||
self._name = None
|
||||
|
@ -39,7 +40,6 @@ class Sensor:
|
|||
"""
|
||||
return self._units
|
||||
|
||||
|
||||
@property
|
||||
def location(self):
|
||||
"""
|
||||
|
@ -47,7 +47,6 @@ class Sensor:
|
|||
"""
|
||||
return self._location
|
||||
|
||||
|
||||
@location.setter
|
||||
def location(self, value):
|
||||
"""
|
||||
|
|
|
@ -71,7 +71,7 @@ class ConcordiaEnergyConsumption:
|
|||
fields = line.split(',')
|
||||
date = fields[0]
|
||||
time = fields[1]
|
||||
if '<>'in date:
|
||||
if '<>' in date:
|
||||
return line.replace(f'{date},{time}', 'Date time')
|
||||
else:
|
||||
date_fields = date.split('/')
|
||||
|
|
Loading…
Reference in New Issue
Block a user