Fix Netatmo camera name does not show under Media -> Media sources -> Camera (#107696)
* Fixes issue where Netatmo camera name does not show under Media -> Media sources ->Camera Fixes #105268 * Remove entity name and change has_entity_name to False has_entity_name has to be retained (per https://developers.home-assistant.io/docs/core/entity/#has_entity_name-true-mandatory-for-new-integrations)
This commit is contained in:
parent
8a9f9b94ef
commit
ff811a33f5
1 changed files with 2 additions and 2 deletions
|
@ -83,7 +83,7 @@ class NetatmoCamera(NetatmoBase, Camera):
|
|||
"""Representation of a Netatmo camera."""
|
||||
|
||||
_attr_brand = MANUFACTURER
|
||||
_attr_has_entity_name = True
|
||||
_attr_has_entity_name = False
|
||||
_attr_supported_features = CameraEntityFeature.STREAM
|
||||
|
||||
def __init__(
|
||||
|
@ -97,7 +97,7 @@ class NetatmoCamera(NetatmoBase, Camera):
|
|||
self._camera = cast(NaModules.Camera, netatmo_device.device)
|
||||
self._id = self._camera.entity_id
|
||||
self._home_id = self._camera.home.entity_id
|
||||
self._device_name = self._camera.name
|
||||
self._device_name = self._attr_name = self._camera.name
|
||||
self._model = self._camera.device_type
|
||||
self._config_url = CONF_URL_SECURITY
|
||||
self._attr_unique_id = f"{self._id}-{self._model}"
|
||||
|
|
Loading…
Add table
Reference in a new issue