Fix support for multiple Apple TVs (#8539)

This commit is contained in:
Pierre Ståhl 2017-07-18 20:19:36 +02:00 committed by Paulus Schoutsen
parent a5bfcceacd
commit d7da90ae54
3 changed files with 7 additions and 2 deletions

View file

@ -18,7 +18,7 @@ from homeassistant.components.discovery import SERVICE_APPLE_TV
from homeassistant.loader import get_component
import homeassistant.helpers.config_validation as cv
REQUIREMENTS = ['pyatv==0.3.2']
REQUIREMENTS = ['pyatv==0.3.4']
_LOGGER = logging.getLogger(__name__)

View file

@ -44,6 +44,11 @@ class AppleTVRemote(remote.RemoteDevice):
"""Return the name of the device."""
return self._name
@property
def unique_id(self):
"""Return an unique ID."""
return self._atv.metadata.device_id
@property
def is_on(self):
"""Return true if device is on."""

View file

@ -519,7 +519,7 @@ pyasn1-modules==0.0.9
pyasn1==0.2.3
# homeassistant.components.apple_tv
pyatv==0.3.2
pyatv==0.3.4
# homeassistant.components.device_tracker.bbox
# homeassistant.components.sensor.bbox