From b49aa9485c7bcf579334ee189411667ca9aa0b8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Oldag?= Date: Fri, 6 Nov 2020 10:58:37 +0100 Subject: [PATCH 1/5] Remove unneeded state restoration of the physical device in rpi_gpio_pwm integration (#42804) * Add @soldag to code owners of rpi_gpio_pwm platform * Remove unneeded state restoration of the physical device in rpi_gpio_pwm integration --- CODEOWNERS | 1 + homeassistant/components/rpi_gpio_pwm/light.py | 4 ---- homeassistant/components/rpi_gpio_pwm/manifest.json | 2 +- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/CODEOWNERS b/CODEOWNERS index 87112840f5b..064c690903d 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -362,6 +362,7 @@ homeassistant/components/rmvtransport/* @cgtobi homeassistant/components/roku/* @ctalkington homeassistant/components/roomba/* @pschmitt @cyr-ius @shenxn homeassistant/components/roon/* @pavoni +homeassistant/components/rpi_gpio_pwm/* @soldag homeassistant/components/rpi_power/* @shenxn @swetoast homeassistant/components/ruckus_unleashed/* @gabe565 homeassistant/components/safe_mode/* @home-assistant/core diff --git a/homeassistant/components/rpi_gpio_pwm/light.py b/homeassistant/components/rpi_gpio_pwm/light.py index f86d1f27832..0673047c6a7 100644 --- a/homeassistant/components/rpi_gpio_pwm/light.py +++ b/homeassistant/components/rpi_gpio_pwm/light.py @@ -123,9 +123,6 @@ class PwmSimpleLed(LightEntity, RestoreEntity): self._brightness = last_state.attributes.get( "brightness", DEFAULT_BRIGHTNESS ) - self._led.set( - is_on=self._is_on, brightness=_from_hass_brightness(self._brightness) - ) @property def should_poll(self): @@ -199,7 +196,6 @@ class PwmRgbLed(PwmSimpleLed): last_state = await self.async_get_last_state() if last_state: self._color = last_state.attributes.get("hs_color", DEFAULT_COLOR) - self._led.set(color=_from_hass_color(self._color)) @property def hs_color(self): diff --git a/homeassistant/components/rpi_gpio_pwm/manifest.json b/homeassistant/components/rpi_gpio_pwm/manifest.json index 2467673e950..9b926bafa1d 100644 --- a/homeassistant/components/rpi_gpio_pwm/manifest.json +++ b/homeassistant/components/rpi_gpio_pwm/manifest.json @@ -3,5 +3,5 @@ "name": "pigpio Daemon PWM LED", "documentation": "https://www.home-assistant.io/integrations/rpi_gpio_pwm", "requirements": ["pwmled==1.6.6"], - "codeowners": [] + "codeowners": ["@soldag"] } From ea5f6213516526228ea7dff8d1c6c39dcd96dc0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Oldag?= Date: Fri, 6 Nov 2020 19:27:01 +0100 Subject: [PATCH 2/5] Bump pwmled to v1.6.7 (#42903) --- homeassistant/components/rpi_gpio_pwm/manifest.json | 2 +- requirements_all.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/rpi_gpio_pwm/manifest.json b/homeassistant/components/rpi_gpio_pwm/manifest.json index 9b926bafa1d..35d09ea92bf 100644 --- a/homeassistant/components/rpi_gpio_pwm/manifest.json +++ b/homeassistant/components/rpi_gpio_pwm/manifest.json @@ -2,6 +2,6 @@ "domain": "rpi_gpio_pwm", "name": "pigpio Daemon PWM LED", "documentation": "https://www.home-assistant.io/integrations/rpi_gpio_pwm", - "requirements": ["pwmled==1.6.6"], + "requirements": ["pwmled==1.6.7"], "codeowners": ["@soldag"] } diff --git a/requirements_all.txt b/requirements_all.txt index c490cb121ea..cf8fa059c1c 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1182,7 +1182,7 @@ pushbullet.py==0.11.0 pushover_complete==1.1.1 # homeassistant.components.rpi_gpio_pwm -pwmled==1.6.6 +pwmled==1.6.7 # homeassistant.components.august py-august==0.25.0 From 9d617d446eb137b9bd5f4940bbb0c3862b6b0618 Mon Sep 17 00:00:00 2001 From: Hmmbob <33529490+hmmbob@users.noreply.github.com> Date: Mon, 9 Nov 2020 20:17:57 +0100 Subject: [PATCH 3/5] Bump gTTS-token to 1.1.4 (#43015) --- homeassistant/components/google_translate/manifest.json | 2 +- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homeassistant/components/google_translate/manifest.json b/homeassistant/components/google_translate/manifest.json index c949e514d87..6d40b2f7a09 100644 --- a/homeassistant/components/google_translate/manifest.json +++ b/homeassistant/components/google_translate/manifest.json @@ -2,6 +2,6 @@ "domain": "google_translate", "name": "Google Translate Text-to-Speech", "documentation": "https://www.home-assistant.io/integrations/google_translate", - "requirements": ["gTTS-token==1.1.3"], + "requirements": ["gTTS-token==1.1.4"], "codeowners": [] } diff --git a/requirements_all.txt b/requirements_all.txt index cf8fa059c1c..7aa9b08664d 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -619,7 +619,7 @@ freesms==0.1.2 fritzconnection==1.2.0 # homeassistant.components.google_translate -gTTS-token==1.1.3 +gTTS-token==1.1.4 # homeassistant.components.garmin_connect garminconnect==0.1.13 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 2e74a82e8c4..677a4a9c594 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -302,7 +302,7 @@ fnvhash==0.1.0 foobot_async==0.3.2 # homeassistant.components.google_translate -gTTS-token==1.1.3 +gTTS-token==1.1.4 # homeassistant.components.garmin_connect garminconnect==0.1.13 From 176c2f3978b77080a4bf4207b5111e7ad5fec939 Mon Sep 17 00:00:00 2001 From: jjlawren Date: Wed, 11 Nov 2020 02:40:25 -0600 Subject: [PATCH 4/5] Fix Plex auth issues by setting header (#43081) --- homeassistant/components/plex/config_flow.py | 6 ++++-- homeassistant/components/plex/manifest.json | 6 +++--- requirements_all.txt | 2 +- requirements_test_all.txt | 2 +- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/homeassistant/components/plex/config_flow.py b/homeassistant/components/plex/config_flow.py index bdbdc9c6cc9..f177412e7ec 100644 --- a/homeassistant/components/plex/config_flow.py +++ b/homeassistant/components/plex/config_flow.py @@ -289,6 +289,8 @@ class PlexFlowHandler(config_entries.ConfigFlow, domain=DOMAIN): async def async_step_plex_website_auth(self): """Begin external auth flow on Plex website.""" self.hass.http.register_view(PlexAuthorizationCallbackView) + hass_url = get_url(self.hass) + headers = {"Origin": hass_url} payload = { "X-Plex-Device-Name": X_PLEX_DEVICE_NAME, "X-Plex-Version": X_PLEX_VERSION, @@ -298,9 +300,9 @@ class PlexFlowHandler(config_entries.ConfigFlow, domain=DOMAIN): "X-Plex-Model": "Plex OAuth", } session = async_get_clientsession(self.hass) - self.plexauth = PlexAuth(payload, session) + self.plexauth = PlexAuth(payload, session, headers) await self.plexauth.initiate_auth() - forward_url = f"{get_url(self.hass)}{AUTH_CALLBACK_PATH}?flow_id={self.flow_id}" + forward_url = f"{hass_url}{AUTH_CALLBACK_PATH}?flow_id={self.flow_id}" auth_url = self.plexauth.auth_url(forward_url) return self.async_external_step(step_id="obtain_token", url=auth_url) diff --git a/homeassistant/components/plex/manifest.json b/homeassistant/components/plex/manifest.json index f5bbc6ac53c..c459f97a966 100644 --- a/homeassistant/components/plex/manifest.json +++ b/homeassistant/components/plex/manifest.json @@ -4,9 +4,9 @@ "config_flow": true, "documentation": "https://www.home-assistant.io/integrations/plex", "requirements": [ - "plexapi==4.1.1", - "plexauth==0.0.5", - "plexwebsocket==0.0.12" + "plexapi==4.1.1", + "plexauth==0.0.6", + "plexwebsocket==0.0.12" ], "dependencies": ["http"], "after_dependencies": ["sonos"], diff --git a/requirements_all.txt b/requirements_all.txt index 7aa9b08664d..bbb60c6e189 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -1124,7 +1124,7 @@ pizzapi==0.0.3 plexapi==4.1.1 # homeassistant.components.plex -plexauth==0.0.5 +plexauth==0.0.6 # homeassistant.components.plex plexwebsocket==0.0.12 diff --git a/requirements_test_all.txt b/requirements_test_all.txt index 677a4a9c594..f71678da698 100644 --- a/requirements_test_all.txt +++ b/requirements_test_all.txt @@ -541,7 +541,7 @@ pillow==7.2.0 plexapi==4.1.1 # homeassistant.components.plex -plexauth==0.0.5 +plexauth==0.0.6 # homeassistant.components.plex plexwebsocket==0.0.12 From 650f3413a4f94e5d27d6e61112835c0a90dd1b74 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 11 Nov 2020 18:04:17 +0100 Subject: [PATCH 5/5] Bumped version to 0.117.6 --- homeassistant/const.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/const.py b/homeassistant/const.py index 7b660116296..6e7056648d5 100644 --- a/homeassistant/const.py +++ b/homeassistant/const.py @@ -1,7 +1,7 @@ """Constants used by Home Assistant components.""" MAJOR_VERSION = 0 MINOR_VERSION = 117 -PATCH_VERSION = "5" +PATCH_VERSION = "6" __short_version__ = f"{MAJOR_VERSION}.{MINOR_VERSION}" __version__ = f"{__short_version__}.{PATCH_VERSION}" REQUIRED_PYTHON_VER = (3, 7, 1)