diff --git a/homeassistant/components/unifiprotect/button.py b/homeassistant/components/unifiprotect/button.py index 7d3d8bf136e..3940c85d21a 100644 --- a/homeassistant/components/unifiprotect/button.py +++ b/homeassistant/components/unifiprotect/button.py @@ -39,6 +39,9 @@ async def async_setup_entry( class ProtectButton(ProtectDeviceEntity, ButtonEntity): """A Ubiquiti UniFi Protect Reboot button.""" + _attr_entity_registry_enabled_default = False + _attr_device_class = ButtonDeviceClass.RESTART + def __init__( self, data: ProtectData, @@ -47,8 +50,6 @@ class ProtectButton(ProtectDeviceEntity, ButtonEntity): """Initialize an UniFi camera.""" super().__init__(data, device) self._attr_name = f"{self.device.name} Reboot Device" - self._attr_entity_registry_enabled_default = False - self._attr_device_class = ButtonDeviceClass.RESTART async def async_press(self) -> None: """Press the button.""" diff --git a/homeassistant/components/unifiprotect/light.py b/homeassistant/components/unifiprotect/light.py index 20479a5d600..21917d1d8e5 100644 --- a/homeassistant/components/unifiprotect/light.py +++ b/homeassistant/components/unifiprotect/light.py @@ -56,6 +56,9 @@ def hass_to_unifi_brightness(value: int) -> int: class ProtectLight(ProtectDeviceEntity, LightEntity): """A Ubiquiti UniFi Protect Light Entity.""" + _attr_icon = "mdi:spotlight-beam" + _attr_supported_features = SUPPORT_BRIGHTNESS + def __init__( self, data: ProtectData, @@ -64,8 +67,6 @@ class ProtectLight(ProtectDeviceEntity, LightEntity): """Initialize an UniFi light.""" self.device: Light = device super().__init__(data) - self._attr_icon = "mdi:spotlight-beam" - self._attr_supported_features = SUPPORT_BRIGHTNESS @callback def _async_update_device_from_protect(self) -> None: diff --git a/homeassistant/components/unifiprotect/number.py b/homeassistant/components/unifiprotect/number.py index cabd49a783c..05aaf51785c 100644 --- a/homeassistant/components/unifiprotect/number.py +++ b/homeassistant/components/unifiprotect/number.py @@ -73,7 +73,7 @@ CAMERA_NUMBERS: tuple[ProtectNumberEntityDescription, ...] = ( ), ProtectNumberEntityDescription( key=_KEY_ZOOM_POS, - name="Zoom Position", + name="Zoom Level", icon="mdi:magnify-plus-outline", entity_category=EntityCategory.CONFIG, ufp_min=0,