From 9821047d7510dca86c7d686a8583a32ca53af073 Mon Sep 17 00:00:00 2001 From: dcnielsen90 Date: Sat, 1 Feb 2020 12:04:49 -0500 Subject: [PATCH] Replace unmaintained BraviaRC backend with new fork: (#31234) BraviaRC is currently unmaintained for home-assistant. This commit swaps it out with a new fork of BraviaRC called python-bravia-tv. This captures all bug fixes from BraviaRC release 3.7 (previously linked backend) to right before BraviaRC breaks when used by home-assistant. The intent of forking is to be able to continue supporting home-assistant. This is not intended to be a one off solution; this new fork will have future updates and be maintain as needed. This initial commit of python-bravia-tv improves the import process, however overall preserves the original API. Other fixes include: * Fix set-volume slider * Better error handling * Increase input options Resolves: #26351, #30964 See also: #12577, #14843, #17345, #18245 --- homeassistant/components/braviatv/manifest.json | 2 +- homeassistant/components/braviatv/media_player.py | 2 +- requirements_all.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/braviatv/manifest.json b/homeassistant/components/braviatv/manifest.json index 1cb3efdd2cc..8bfa48b9195 100644 --- a/homeassistant/components/braviatv/manifest.json +++ b/homeassistant/components/braviatv/manifest.json @@ -2,7 +2,7 @@ "domain": "braviatv", "name": "Sony Bravia TV", "documentation": "https://www.home-assistant.io/integrations/braviatv", - "requirements": ["braviarc-homeassistant==0.3.7.dev0", "getmac==0.8.1"], + "requirements": ["bravia-tv==1.0", "getmac==0.8.1"], "dependencies": ["configurator"], "codeowners": ["@robbiet480"] } diff --git a/homeassistant/components/braviatv/media_player.py b/homeassistant/components/braviatv/media_player.py index ef0640c8e87..67feb8bfc48 100644 --- a/homeassistant/components/braviatv/media_player.py +++ b/homeassistant/components/braviatv/media_player.py @@ -2,7 +2,7 @@ import ipaddress import logging -from braviarc.braviarc import BraviaRC +from bravia_tv import BraviaRC from getmac import get_mac_address import voluptuous as vol diff --git a/requirements_all.txt b/requirements_all.txt index a0ef25566ff..313488a4496 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -334,7 +334,7 @@ bomradarloop==0.1.3 boto3==1.9.252 # homeassistant.components.braviatv -braviarc-homeassistant==0.3.7.dev0 +bravia-tv==1.0 # homeassistant.components.broadlink broadlink==0.12.0