Panasonic viera fix (#4888)

* Removed return False so the Panasonic Viera TV can be added even if it doesn't connect

* Removed return False so the Panasonic Viera TV can be added even if it doesn't connect

* Removed return False so the Panasonic Viera TV can be added even if it doesn't connect

* Remove try/except to connect to the TV

* Update panasonic_viera.py

* Update panasonic_viera.py
This commit is contained in:
Magas 2016-12-16 01:11:58 -05:00 committed by Paulus Schoutsen
parent 7b45cf8e59
commit 5b70ada7b4

View File

@ -57,13 +57,6 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
host = config.get(CONF_HOST) host = config.get(CONF_HOST)
remote = RemoteControl(host, port) remote = RemoteControl(host, port)
try:
remote.get_mute()
except OSError as error:
_LOGGER.error('Panasonic Viera TV is not available at %s:%d: %s',
host, port, error)
return False
add_devices([PanasonicVieraTVDevice(name, remote)]) add_devices([PanasonicVieraTVDevice(name, remote)])
return True return True