Revert "Fix Netatmo camera name does not show under Media -> Media sources -> Camera" (#107856)

This commit is contained in:
Tobias Sauerwein 2024-01-12 11:30:23 +01:00 committed by GitHub
parent c9befe8700
commit 87b694298f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -83,7 +83,7 @@ class NetatmoCamera(NetatmoBase, Camera):
"""Representation of a Netatmo camera."""
_attr_brand = MANUFACTURER
_attr_has_entity_name = False
_attr_has_entity_name = True
_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._attr_name = self._camera.name
self._device_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}"