Minor fixes for webostv (#30998)
* restore emulation of play pause toggle * add protection to notify setup * add state check for power off to avoid switching tv back on
This commit is contained in:
1 parent
053f18d6ce
commit
a634e62dfc
2 files changed
+17
-3
No files matched your search
@@ -16,6 +16,9 @@ _LOGGER = logging.getLogger(__name__)
|
||||
async def async_get_service(hass, config, discovery_info=None):
|
||||
"""Return the notify service."""
|
||||
|
||||
if discovery_info is None:
|
||||
return None
|
||||
|
||||
host = discovery_info.get(CONF_HOST)
|
||||
icon_path = discovery_info.get(CONF_ICON)
|
||||
|
||||
|
||||
Reference in new issue
Block a user