mirror of
https://github.com/esphome/esphome.git
synced 2025-10-24 20:53:48 +01:00
Add class as first positional arg to sensor_schema (#3216)
This commit is contained in:
@@ -8,7 +8,6 @@ from esphome.const import (
|
||||
CONF_RANGE,
|
||||
ICON_MAGNET,
|
||||
STATE_CLASS_MEASUREMENT,
|
||||
STATE_CLASS_NONE,
|
||||
UNIT_MICROTESLA,
|
||||
UNIT_DEGREES,
|
||||
ICON_SCREEN_ROTATION,
|
||||
@@ -88,7 +87,6 @@ heading_schema = sensor.sensor_schema(
|
||||
unit_of_measurement=UNIT_DEGREES,
|
||||
icon=ICON_SCREEN_ROTATION,
|
||||
accuracy_decimals=1,
|
||||
state_class=STATE_CLASS_NONE,
|
||||
)
|
||||
|
||||
CONFIG_SCHEMA = (
|
||||
|
||||
Reference in New Issue
Block a user