mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
parent
16a885824d
commit
7751dd7535
@ -8,7 +8,8 @@ import logging
|
|||||||
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.nest import DATA_NEST, SIGNAL_NEST_UPDATE
|
from homeassistant.components.nest import (
|
||||||
|
DATA_NEST, SIGNAL_NEST_UPDATE, DOMAIN as NEST_DOMAIN)
|
||||||
from homeassistant.components.climate import (
|
from homeassistant.components.climate import (
|
||||||
STATE_AUTO, STATE_COOL, STATE_HEAT, STATE_ECO, ClimateDevice,
|
STATE_AUTO, STATE_COOL, STATE_HEAT, STATE_ECO, ClimateDevice,
|
||||||
PLATFORM_SCHEMA, ATTR_TARGET_TEMP_HIGH, ATTR_TARGET_TEMP_LOW,
|
PLATFORM_SCHEMA, ATTR_TARGET_TEMP_HIGH, ATTR_TARGET_TEMP_LOW,
|
||||||
@ -127,6 +128,18 @@ class NestThermostat(ClimateDevice):
|
|||||||
"""Return unique ID for this device."""
|
"""Return unique ID for this device."""
|
||||||
return self.device.serial
|
return self.device.serial
|
||||||
|
|
||||||
|
@property
|
||||||
|
def device_info(self):
|
||||||
|
"""Return information about the device."""
|
||||||
|
return {
|
||||||
|
'identifiers': {
|
||||||
|
(NEST_DOMAIN, self.device.device_id),
|
||||||
|
},
|
||||||
|
'name': self.device.name_long,
|
||||||
|
'manufacturer': 'Nest Labs',
|
||||||
|
'model': "Thermostat",
|
||||||
|
}
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
"""Return the name of the nest, if any."""
|
"""Return the name of the nest, if any."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user