mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 09:17:10 +00:00
Fix Nest sensor (#25023)
This commit is contained in:
parent
9944e675a5
commit
26a66276cd
@ -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',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user