mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 19:57:07 +00:00
Added should_poll = False to universal media player
This commit is contained in:
parent
a1abab8ced
commit
769f5aafb7
@ -191,6 +191,11 @@ class UniversalMediaPlayer(MediaPlayerDevice):
|
||||
self.hass.services.call(DOMAIN, service_name, service_data,
|
||||
blocking=True)
|
||||
|
||||
@property
|
||||
def should_poll(self):
|
||||
""" Indicates whether HA should poll for updates """
|
||||
return False
|
||||
|
||||
@property
|
||||
def dependencies(self):
|
||||
""" List of entity ids of entities that the mp depends on for state """
|
||||
|
Loading…
x
Reference in New Issue
Block a user