Revert "Fix Netatmo camera name does not show under Media -> Media sources -> Camera" (#107856)
This commit is contained in:
parent
c9befe8700
commit
87b694298f
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 = 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}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue