mirror of
https://github.com/home-assistant/core.git
synced 2025-07-12 15:57:06 +00:00
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
@ -83,7 +83,7 @@ class NetatmoCamera(NetatmoBase, Camera):
|
|||||||
"""Representation of a Netatmo camera."""
|
"""Representation of a Netatmo camera."""
|
||||||
|
|
||||||
_attr_brand = MANUFACTURER
|
_attr_brand = MANUFACTURER
|
||||||
_attr_has_entity_name = True
|
_attr_has_entity_name = False
|
||||||
_attr_supported_features = CameraEntityFeature.STREAM
|
_attr_supported_features = CameraEntityFeature.STREAM
|
||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
@ -97,7 +97,7 @@ class NetatmoCamera(NetatmoBase, Camera):
|
|||||||
self._camera = cast(NaModules.Camera, netatmo_device.device)
|
self._camera = cast(NaModules.Camera, netatmo_device.device)
|
||||||
self._id = self._camera.entity_id
|
self._id = self._camera.entity_id
|
||||||
self._home_id = self._camera.home.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._model = self._camera.device_type
|
||||||
self._config_url = CONF_URL_SECURITY
|
self._config_url = CONF_URL_SECURITY
|
||||||
self._attr_unique_id = f"{self._id}-{self._model}"
|
self._attr_unique_id = f"{self._id}-{self._model}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user