Guides
Implementation
How to implement a feature.
You need to create a connector project using the connector-starter repository. Then you create a Python file for each feature you plan on implementing under src/connector/temperature_provider.py
. In this file, you overwrite the base class temperature_provider_base.py
and add the implementation logic.
temperature_provider.py
import datetime
from unitelabs.features.examples.temperature_controller import TemperatureControllerBase
class TemperatureProvider(TemperatureControllerBase):
def __init__(self):
super().__init__()
self._temperature = 37
def get__temperature(self) -> int:
return self._temperature
def set_temperature(self, target: 37.5) -> None:
self._temperature = target
🧱🚧🏗️ This is still in work in progress 🧱🚧🏗️