Fixes an issue in Xiaomi TV platform that would some TVs not sleep correctly (#14829)
parent
cb6c869c2f
commit
21d05a8b4d
|
@ -13,7 +13,7 @@ from homeassistant.components.media_player import (
|
|||
SUPPORT_TURN_ON, SUPPORT_TURN_OFF, MediaPlayerDevice, PLATFORM_SCHEMA,
|
||||
SUPPORT_VOLUME_STEP)
|
||||
|
||||
REQUIREMENTS = ['pymitv==1.0.0']
|
||||
REQUIREMENTS = ['pymitv==1.4.0']
|
||||
|
||||
DEFAULT_NAME = "Xiaomi TV"
|
||||
|
||||
|
@ -39,7 +39,7 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
|||
|
||||
if host is not None:
|
||||
# Check if there's a valid TV at the IP address.
|
||||
if not Discover().checkIp(host):
|
||||
if not Discover().check_ip(host):
|
||||
_LOGGER.error(
|
||||
"Could not find Xiaomi TV with specified IP: %s", host
|
||||
)
|
||||
|
|
|
@ -884,7 +884,7 @@ pymailgunner==1.4
|
|||
pymediaroom==0.6.3
|
||||
|
||||
# homeassistant.components.media_player.xiaomi_tv
|
||||
pymitv==1.0.0
|
||||
pymitv==1.4.0
|
||||
|
||||
# homeassistant.components.mochad
|
||||
pymochad==0.2.0
|
||||
|
|
Loading…
Reference in New Issue