Use device class naming for Nest (#95742)

This commit is contained in:
Joost Lekkerkerker 2023-07-03 03:10:29 +02:00 committed by GitHub
parent 0ff3836083
commit 1ead95f5ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 12 deletions

View File

@ -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:

View File

@ -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%]"
}
}
}
}