Repository: home-assistant/core
File: homeassistant/components/samsungtv/entity.py (Python)

Code before:
            )

    def _wake_on_lan(self) -> None:
        """Wake the device via wake on lan."""
        send_magic_packet(self._mac, ip_address=self._host)  # type: ignore[arg-type]
        # If the ip address changed since we last saw the device
        # broadcast a packet as well
        send_magic_packet(self._mac)  # type: ignore[arg-type]

    async def async_turn_off(self, **kwargs: Any) -> None:
        """Turn the device off."""
        await self._bridge.async_power_off()
        await self.coordinator.async_refresh()

    async def async_turn_on(self, **kwargs: Any) -> None:
        """Turn the remote on."""
        if self._turn_on_action:
            LOGGER.debug("Attempting to turn on %s via automation", self.entity_id)
            await self._turn_on_action.async_run(self.hass, self._context)
        elif self._mac:
            ir.async_create_issue(
                self.hass,
                DOMAIN,
                DEPRECATED_IMPLICIT_WAKE_ON_LAN.format(self._mac),
                is_fixable=False,
                breaks_in_ha_version="2026.7.0",
                severity=ir.IssueSeverity.WARNING,
                translation_key="deprecated_implicit_wake_on_lan",
                translation_placeholders={
                    "mac_address": self._mac,
                    "wol_documentation_url": "https://www.home-assistant.io/integrations/wake_on_lan/",
                },
            )
            await self.hass.async_add_executor_job(self._wake_on_lan)
        else:
            LOGGER.error(
                "Unable to turn on %s, as it does not have an automation configured",
                self.entity_id,
            )
            raise HomeAssistantError(
                translation_domain=DOMAIN,
                translation_key="service_unsupported",
                translation_placeholders={"entity": self.entity_id},
            )


Review comment (suggestion):
```suggestion
                breaks_in_ha_version="2026.8.0",
```

Code after:
            )

    def _wake_on_lan(self) -> None:
        """Wake the device via wake on lan."""
        send_magic_packet(self._mac, ip_address=self._host)  # type: ignore[arg-type]
        # If the ip address changed since we last saw the device
        # broadcast a packet as well
        send_magic_packet(self._mac)  # type: ignore[arg-type]

    async def async_turn_off(self, **kwargs: Any) -> None:
        """Turn the device off."""
        await self._bridge.async_power_off()
        await self.coordinator.async_refresh()

    async def async_turn_on(self, **kwargs: Any) -> None:
        """Turn the remote on."""
        if self._turn_on_action:
            LOGGER.debug("Attempting to turn on %s via automation", self.entity_id)
            await self._turn_on_action.async_run(self.hass, self._context)
        elif self._mac:
            ir.async_create_issue(
                self.hass,
                DOMAIN,
                DEPRECATED_IMPLICIT_WAKE_ON_LAN.format(self._mac),
                is_fixable=False,
                breaks_in_ha_version="2026.8.0",
                severity=ir.IssueSeverity.WARNING,
                translation_key="deprecated_implicit_wake_on_lan",
                translation_placeholders={
                    "mac_address": self._mac,
                    "wol_documentation_url": "https://www.home-assistant.io/integrations/wake_on_lan/",
                },
            )
            await self.hass.async_add_executor_job(self._wake_on_lan)
        else:
            LOGGER.error(
                "Unable to turn on %s, as it does not have an automation configured",
                self.entity_id,
            )
            raise HomeAssistantError(
                translation_domain=DOMAIN,
                translation_key="service_unsupported",
                translation_placeholders={"entity": self.entity_id},
            )