1
0
mirror of https://github.com/esphome/esphome.git synced 2025-04-16 07:40:29 +01:00

Locally define config string for testing.

This commit is contained in:
tjhowse 2025-01-12 16:36:29 +10:00
parent a06bbda368
commit cefc0b9afc

View File

@ -6,9 +6,12 @@ from esphome.const import (
DEVICE_CLASS_TEMPERATURE,
STATE_CLASS_MEASUREMENT,
UNIT_CELSIUS,
CONF_IGNORE_THERMOCOUPLE_SHORT_CIRCUIT_ERRORS,
# CONF_IGNORE_THERMOCOUPLE_SHORT_CIRCUIT_ERRORS,
)
# TODO For testing, remove before merging.
CONF_IGNORE_THERMOCOUPLE_SHORT_CIRCUIT_ERRORS = "ignore_thermocouple_short_circuit_errors"
max31855_ns = cg.esphome_ns.namespace("max31855")
MAX31855Sensor = max31855_ns.class_(
"MAX31855Sensor", sensor.Sensor, cg.PollingComponent, spi.SPIDevice