mirror of
https://github.com/athom-tech/esp32-configs.git
synced 2026-07-27 19:56:13 +00:00
Update sensor.py
This commit is contained in:
@@ -28,7 +28,7 @@ CONFIG_SCHEMA = (
|
||||
cv.Optional("Temperature"): sensor.sensor_schema(
|
||||
accuracy_decimals = 0,
|
||||
device_class = "temperature",
|
||||
unit_of_measurement = "℃"
|
||||
unit_of_measurement = "°C"
|
||||
),
|
||||
cv.GenerateID(): cv.declare_id(BL0906),
|
||||
cv.Optional("Voltage"): sensor.sensor_schema(
|
||||
@@ -221,4 +221,4 @@ async def to_code(config):
|
||||
if "Energy_sum" in config:
|
||||
sens = await sensor.new_sensor(config["Energy_sum"])
|
||||
cg.add(var.set_energy_sensor_sum(sens))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user