Use explicit naming in Nest (#95532)

This commit is contained in:
Joost Lekkerkerker 2023-06-29 14:49:46 +02:00 committed by GitHub
parent a3ffa0aed7
commit 9d7007df63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -61,6 +61,7 @@ class NestCamera(Camera):
"""Devices that support cameras.""" """Devices that support cameras."""
_attr_has_entity_name = True _attr_has_entity_name = True
_attr_name = None
def __init__(self, device: Device) -> None: def __init__(self, device: Device) -> None:
"""Initialize the camera.""" """Initialize the camera."""

View File

@ -99,6 +99,7 @@ class ThermostatEntity(ClimateEntity):
_attr_max_temp = MAX_TEMP _attr_max_temp = MAX_TEMP
_attr_has_entity_name = True _attr_has_entity_name = True
_attr_should_poll = False _attr_should_poll = False
_attr_name = None
def __init__(self, device: Device) -> None: def __init__(self, device: Device) -> None:
"""Initialize ThermostatEntity.""" """Initialize ThermostatEntity."""