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):
self._measures.drop = None
def add_period(self, 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
"""
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):
"""

View File

@ -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('/')