Remove update throttle in LG Netcast (#68902)
This commit is contained in:
parent
46a457a638
commit
2c49323b5f
1 changed files with 1 additions and 6 deletions
|
@ -1,13 +1,12 @@
|
|||
"""Support for LG TV running on NetCast 3 or 4."""
|
||||
from __future__ import annotations
|
||||
|
||||
from datetime import datetime, timedelta
|
||||
from datetime import datetime
|
||||
|
||||
from pylgnetcast import LgNetCastClient, LgNetCastError
|
||||
from requests import RequestException
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant import util
|
||||
from homeassistant.components.media_player import (
|
||||
PLATFORM_SCHEMA,
|
||||
MediaPlayerDeviceClass,
|
||||
|
@ -47,9 +46,6 @@ DEFAULT_NAME = "LG TV Remote"
|
|||
|
||||
CONF_ON_ACTION = "turn_on_action"
|
||||
|
||||
MIN_TIME_BETWEEN_FORCED_SCANS = timedelta(seconds=1)
|
||||
MIN_TIME_BETWEEN_SCANS = timedelta(seconds=10)
|
||||
|
||||
SUPPORT_LGTV = (
|
||||
SUPPORT_PAUSE
|
||||
| SUPPORT_VOLUME_STEP
|
||||
|
@ -122,7 +118,6 @@ class LgTVDevice(MediaPlayerEntity):
|
|||
except (LgNetCastError, RequestException):
|
||||
self._state = STATE_OFF
|
||||
|
||||
@util.Throttle(MIN_TIME_BETWEEN_SCANS, MIN_TIME_BETWEEN_FORCED_SCANS)
|
||||
def update(self):
|
||||
"""Retrieve the latest data from the LG TV."""
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue