mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
Fix Nest sensor (#25023)
This commit is contained in:
@@ -7,7 +7,7 @@ from homeassistant.const import (
|
|||||||
|
|
||||||
from . import CONF_SENSORS, DATA_NEST, DATA_NEST_CONFIG, NestSensorDevice
|
from . import CONF_SENSORS, DATA_NEST, DATA_NEST_CONFIG, NestSensorDevice
|
||||||
|
|
||||||
SENSOR_TYPES = ['humidity', 'operation_mode', 'hvac_mode']
|
SENSOR_TYPES = ['humidity', 'operation_mode', 'hvac_state']
|
||||||
|
|
||||||
TEMP_SENSOR_TYPES = ['temperature', 'target']
|
TEMP_SENSOR_TYPES = ['temperature', 'target']
|
||||||
|
|
||||||
@@ -36,7 +36,7 @@ SENSOR_DEVICE_CLASSES = {'humidity': DEVICE_CLASS_HUMIDITY}
|
|||||||
VARIABLE_NAME_MAPPING = {'eta': 'eta_begin', 'operation_mode': 'mode'}
|
VARIABLE_NAME_MAPPING = {'eta': 'eta_begin', 'operation_mode': 'mode'}
|
||||||
|
|
||||||
VALUE_MAPPING = {
|
VALUE_MAPPING = {
|
||||||
'hvac_mode': {
|
'hvac_state': {
|
||||||
'heating': STATE_HEAT, 'cooling': STATE_COOL, 'off': STATE_OFF}}
|
'heating': STATE_HEAT, 'cooling': STATE_COOL, 'off': STATE_OFF}}
|
||||||
|
|
||||||
SENSOR_TYPES_DEPRECATED = ['last_ip',
|
SENSOR_TYPES_DEPRECATED = ['last_ip',
|
||||||
|
Reference in New Issue
Block a user