That was short lived. If TV is off, it turns TV on, but does not switch source. I tried upping the delay, but not go. This is what I get in log.
2019-09-05 11:06:11 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall script.1567648505536 (c:7a54659cac2e4584abd7a9550d94013f)>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1243, in _safe_execute
await self._execute_service(handler, service_call)
File "/usr/src/homeassistant/homeassistant/core.py", line 1260, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 142, in service_handler
await script.async_turn_on(variables=service.data, context=service.context)
File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 214, in async_turn_on
raise err
File "/usr/src/homeassistant/homeassistant/components/script/__init__.py", line 209, in async_turn_on
await self.script.async_run(kwargs.get(ATTR_VARIABLES), context)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 151, in async_run
await self._handle_action(action, variables, context)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 235, in _handle_action
await self._actions[_determine_action(action)](action, variables, context)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 318, in _async_call_service
context=context,
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 98, in async_call_from_config
domain, service_name, service_data, blocking=blocking, context=context
File "/usr/src/homeassistant/homeassistant/core.py", line 1235, in async_call
await asyncio.shield(self._execute_service(handler, service_call))
File "/usr/src/homeassistant/homeassistant/core.py", line 1260, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 210, in handle_service
self._platforms.values(), func, call, service_name, required_features
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 349, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 371, in _handle_service_platform_call
await getattr(entity, func)(**data)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/roku/media_player.py", line 220, in select_source
channel.launch()
File "/usr/local/lib/python3.7/site-packages/roku/core.py", line 99, in launch
self.roku.launch(self)
File "/usr/local/lib/python3.7/site-packages/roku/core.py", line 305, in launch
return self._post('/launch/%s' % app.id, params=params)
File "/usr/local/lib/python3.7/site-packages/roku/core.py", line 212, in _post
return self._call('POST', path, *args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/roku/core.py", line 229, in _call
raise RokuException(resp.content)
roku.core.RokuException: b''