mirror of
https://github.com/OMGeeky/homecontrol.esp-sensors.git
synced 2026-02-23 15:49:52 +01:00
update documentation & examples
This commit is contained in:
@@ -31,7 +31,7 @@ class HumiditySensor(Sensor):
|
||||
"""
|
||||
if sensor_config is None:
|
||||
sensor_config = {}
|
||||
# Initialize base class with sensor_type for configuration loading
|
||||
# Initialize base class with sensor_config for configuration
|
||||
super().__init__(name, pin, interval, sensor_config=sensor_config)
|
||||
self._last_humidity = None
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ class TemperatureSensor(Sensor):
|
||||
"""
|
||||
if sensor_config is None:
|
||||
sensor_config = {}
|
||||
# Initialize base class with sensor_type for configuration loading
|
||||
# Initialize base class with sensor_config for configuration
|
||||
super().__init__(name, pin, interval, sensor_config=sensor_config)
|
||||
|
||||
# Load configuration if not provided in parameters
|
||||
|
||||
Reference in New Issue
Block a user