mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
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:
parent
7b45cf8e59
commit
5b70ada7b4
@ -57,13 +57,6 @@ def setup_platform(hass, config, add_devices, discovery_info=None):
|
||||
host = config.get(CONF_HOST)
|
||||
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)])
|
||||
return True
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user