mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17: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,
|
self.hass.services.call(DOMAIN, service_name, service_data,
|
||||||
blocking=True)
|
blocking=True)
|
||||||
|
|
||||||
|
@property
|
||||||
|
def should_poll(self):
|
||||||
|
""" Indicates whether HA should poll for updates """
|
||||||
|
return False
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def dependencies(self):
|
def dependencies(self):
|
||||||
""" List of entity ids of entities that the mp depends on for state """
|
""" List of entity ids of entities that the mp depends on for state """
|
||||||
|
Loading…
x
Reference in New Issue
Block a user