mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
parent
e480f75d6d
commit
ef2e3f607a
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user