Added function for toggling transsonic effects

This commit is contained in:
dario 2024-03-31 18:10:46 +02:00
parent 29db73ccd4
commit 6d6ebc8c8b

View File

@ -21,6 +21,9 @@ class PressureSensor(Sensor):
self._ts_effects = ts_effects self._ts_effects = ts_effects
def set_transsonic_effects(self, active: bool):
self._ts_effects = active
def _get_data(self) -> float: def _get_data(self) -> float:
x = self._dataset.get_pressure() x = self._dataset.get_pressure()