just fixed some typological warnings

This commit is contained in:
Pilar 2021-06-01 19:03:55 -04:00
parent 5ea6a0f125
commit 917949f671
3 changed files with 2 additions and 5 deletions

View File

@ -30,7 +30,5 @@ class ConcordiaEnergySensor(Sensor):
def measures(self): def measures(self):
self._measures.drop = None self._measures.drop = None
def add_period(self, period): def add_period(self, period):
self._measures.append(period) self._measures.append(period)

View File

@ -4,6 +4,7 @@ SPDX - License - Identifier: LGPL - 3.0 - or -later
Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@concordia.ca
""" """
class Sensor: class Sensor:
def __init__(self): def __init__(self):
self._name = None self._name = None
@ -39,7 +40,6 @@ class Sensor:
""" """
return self._units return self._units
@property @property
def location(self): def location(self):
""" """
@ -47,7 +47,6 @@ class Sensor:
""" """
return self._location return self._location
@location.setter @location.setter
def location(self, value): def location(self, value):
""" """

View File

@ -71,7 +71,7 @@ class ConcordiaEnergyConsumption:
fields = line.split(',') fields = line.split(',')
date = fields[0] date = fields[0]
time = fields[1] time = fields[1]
if '<>'in date: if '<>' in date:
return line.replace(f'{date},{time}', 'Date time') return line.replace(f'{date},{time}', 'Date time')
else: else:
date_fields = date.split('/') date_fields = date.split('/')