summaryrefslogtreecommitdiff
path: root/src/temphum_mqtt_node.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/temphum_mqtt_node.py')
-rwxr-xr-xsrc/temphum_mqtt_node.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/temphum_mqtt_node.py b/src/temphum_mqtt_node.py
index f4d1fca..bcd72da 100755
--- a/src/temphum_mqtt_node.py
+++ b/src/temphum_mqtt_node.py
@@ -6,10 +6,11 @@ import logging
from typing import Optional
from home.config import config
-from home.temphum import SensorType, create_sensor, TempHumSensor
+from home.temphum import SensorType, BaseSensor
+from home.temphum.i2c import create_sensor
logger = logging.getLogger(__name__)
-sensor: Optional[TempHumSensor] = None
+sensor: Optional[BaseSensor] = None
lock = asyncio.Lock()
delay = 0.01