Re-add forced update in Panasonic Viera (#41804)

This commit is contained in:
João Gabriel 2020-10-14 10:33:47 -03:00 committed by GitHub
parent 49d58bb6a8
commit 72759d7501
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 2 deletions

View file

@ -319,7 +319,6 @@ homeassistant/components/orangepi_gpio/* @pascallj
homeassistant/components/oru/* @bvlaicu homeassistant/components/oru/* @bvlaicu
homeassistant/components/ovo_energy/* @timmo001 homeassistant/components/ovo_energy/* @timmo001
homeassistant/components/ozw/* @cgarwood @marcelveldt @MartinHjelmare homeassistant/components/ozw/* @cgarwood @marcelveldt @MartinHjelmare
homeassistant/components/panasonic_viera/* @joogps
homeassistant/components/panel_custom/* @home-assistant/frontend homeassistant/components/panel_custom/* @home-assistant/frontend
homeassistant/components/panel_iframe/* @home-assistant/frontend homeassistant/components/panel_iframe/* @home-assistant/frontend
homeassistant/components/pcal9535a/* @Shulyaka homeassistant/components/pcal9535a/* @Shulyaka

View file

@ -258,6 +258,7 @@ class Remote:
except (TimeoutError, URLError, SOAPError, OSError): except (TimeoutError, URLError, SOAPError, OSError):
self.state = STATE_OFF self.state = STATE_OFF
self.available = self._on_action is not None self.available = self._on_action is not None
await self.async_create_remote_control()
except Exception as err: # pylint: disable=broad-except except Exception as err: # pylint: disable=broad-except
_LOGGER.exception("An unknown error occurred: %s", err) _LOGGER.exception("An unknown error occurred: %s", err)
self.state = STATE_OFF self.state = STATE_OFF

View file

@ -3,6 +3,6 @@
"name": "Panasonic Viera", "name": "Panasonic Viera",
"documentation": "https://www.home-assistant.io/integrations/panasonic_viera", "documentation": "https://www.home-assistant.io/integrations/panasonic_viera",
"requirements": ["panasonic_viera==0.3.6"], "requirements": ["panasonic_viera==0.3.6"],
"codeowners": ["@joogps"], "codeowners": [],
"config_flow": true "config_flow": true
} }