Correct sensor class definition

This commit is contained in:
Guille Gutierrez 2022-03-29 06:53:55 -04:00
parent 2bc217773e
commit bf7ba17121

View File

@ -5,6 +5,8 @@ Copyright © 2020 Project Author Guille Gutierrez guillermo.gutierrezmorote@conc
"""
from helpers.location import Location
from city_model_structure.iot.sensor_measure import SensorMeasure
from city_model_structure.iot.sensor_type import SensorType
class Sensor:
@ -37,7 +39,7 @@ class Sensor:
self._name = str(value)
@property
def type(self):
def type(self) -> SensorType:
"""
Get sensor type
:return: str
@ -69,7 +71,7 @@ class Sensor:
self._location = value
@property
def measures(self):
def measures(self) -> [SensorMeasure]:
"""
Raises not implemented error
"""