Source code for hardware_interfaces.sensors.sensor_interface

# TODO: add docs
from abc import abstractmethod
from hardware_interfaces import HardwareInterface


[docs]class SensorInterface(HardwareInterface): """[summary] """
[docs] @abstractmethod def read(self): """[summary] """
[docs] def start(self): self.status = "enabled"
[docs] def stop(self): self.status = "disabled"