mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Use device class naming for Nest (#95742)
This commit is contained in:
parent
0ff3836083
commit
1ead95f5ea
@ -79,7 +79,6 @@ class TemperatureSensor(SensorBase):
|
||||
|
||||
_attr_device_class = SensorDeviceClass.TEMPERATURE
|
||||
_attr_native_unit_of_measurement = UnitOfTemperature.CELSIUS
|
||||
_attr_translation_key = "temperature"
|
||||
|
||||
@property
|
||||
def native_value(self) -> float:
|
||||
@ -96,7 +95,6 @@ class HumiditySensor(SensorBase):
|
||||
|
||||
_attr_device_class = SensorDeviceClass.HUMIDITY
|
||||
_attr_native_unit_of_measurement = PERCENTAGE
|
||||
_attr_translation_key = "humidity"
|
||||
|
||||
@property
|
||||
def native_value(self) -> int:
|
||||
|
@ -86,15 +86,5 @@
|
||||
"title": "Legacy Works With Nest is being removed",
|
||||
"description": "Legacy Works With Nest is being removed from Home Assistant.\n\nYou must take action to use the SDM API. Remove all `nest` configuration from `configuration.yaml` and restart Home Assistant, then see the Nest [integration instructions]({documentation_url}) for set up instructions and supported devices."
|
||||
}
|
||||
},
|
||||
"entity": {
|
||||
"sensor": {
|
||||
"temperature": {
|
||||
"name": "[%key:component::sensor::entity_component::temperature::name%]"
|
||||
},
|
||||
"humidity": {
|
||||
"name": "[%key:component::sensor::entity_component::humidity::name%]"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user