mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Revert "Fix Netatmo camera name does not show under Media -> Media sources -> Camera" (#107856)
This commit is contained in:
parent
c9befe8700
commit
87b694298f
@ -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 = False
|
_attr_has_entity_name = True
|
||||||
_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._attr_name = self._camera.name
|
self._device_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