From ef2e3f607ad057b8a72618b889d1053be2c5bc89 Mon Sep 17 00:00:00 2001 From: ktnrg45 <38207570+ktnrg45@users.noreply.github.com> Date: Thu, 14 Mar 2019 09:49:57 -0700 Subject: [PATCH] Ps4 remove throttling (#21961) * Remove throttling * Correct docstring --- homeassistant/components/ps4/media_player.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/homeassistant/components/ps4/media_player.py b/homeassistant/components/ps4/media_player.py index 74dce515d9d..e2b8e97f425 100644 --- a/homeassistant/components/ps4/media_player.py +++ b/homeassistant/components/ps4/media_player.py @@ -2,16 +2,14 @@ Support for PlayStation 4 consoles. For more details about this platform, please refer to the documentation at -https://home-assistant.io/components/media_player.ps4/ +https://home-assistant.io/components/ps4/ """ -from datetime import timedelta import logging import socket import voluptuous as vol import homeassistant.helpers.config_validation as cv -import homeassistant.util as util from homeassistant.components.media_player import ( MediaPlayerDevice, ENTITY_IMAGE_URL) from homeassistant.components.media_player.const import ( @@ -38,9 +36,6 @@ ICON = 'mdi:playstation' GAMES_FILE = '.ps4-games.json' MEDIA_IMAGE_DEFAULT = None -MIN_TIME_BETWEEN_SCANS = timedelta(seconds=5) -MIN_TIME_BETWEEN_FORCED_SCANS = timedelta(seconds=10) - COMMANDS = ( 'up', 'down', @@ -139,7 +134,6 @@ class PS4Device(MediaPlayerDevice): """Subscribe PS4 events.""" self.hass.data[PS4_DATA].devices.append(self) - @util.Throttle(MIN_TIME_BETWEEN_SCANS, MIN_TIME_BETWEEN_FORCED_SCANS) def update(self): """Retrieve the latest data.""" try: