From a56b5994e5f212e1de781621697b8d9aa5b37e4b Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 27 May 2023 18:55:48 -0500 Subject: [PATCH] Disable polling for samsungtv remote entities (#93650) These entities do not have a defined state, there is no reason to poll --- homeassistant/components/samsungtv/remote.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/samsungtv/remote.py b/homeassistant/components/samsungtv/remote.py index dd9e46dedcb..22857d96659 100644 --- a/homeassistant/components/samsungtv/remote.py +++ b/homeassistant/components/samsungtv/remote.py @@ -18,12 +18,14 @@ async def async_setup_entry( ) -> None: """Set up the Samsung TV from a config entry.""" bridge = hass.data[DOMAIN][entry.entry_id] - async_add_entities([SamsungTVRemote(bridge=bridge, config_entry=entry)], True) + async_add_entities([SamsungTVRemote(bridge=bridge, config_entry=entry)]) class SamsungTVRemote(SamsungTVEntity, RemoteEntity): """Device that sends commands to a SamsungTV.""" + _attr_should_poll = False + async def async_turn_off(self, **kwargs: Any) -> None: """Turn the device off.""" await self._bridge.async_power_off()