- refactored

- created TempSensorFactory
This commit is contained in:
jens
2020-12-13 16:21:08 +01:00
parent c401885967
commit 0633e464ca
9 changed files with 29 additions and 15 deletions
+8
View File
@@ -0,0 +1,8 @@
from components.sensor.tempSensorSim import TempSensorSim
class TempSensorFactory:
@staticmethod
def create(name):
if "sim" in name:
return TempSensorSim()