Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid syntax #7

Open
mark-veenstra opened this issue Mar 21, 2021 · 0 comments
Open

invalid syntax #7

mark-veenstra opened this issue Mar 21, 2021 · 0 comments

Comments

@mark-veenstra
Copy link

Hi,

When using your solution or trying it out, it throws the following error:

Logger: homeassistant.core
Source: custom_components/samsungtv_custom/media_player.py:14
First occurred: 15:52:16 (1 occurrences)
Last logged: 15:52:16

Error executing service: <ServiceCall homeassistant.restart (c:6eef5718ccf37a926aaa64f9d6679f14)>
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/core.py", line 1504, in catch_exceptions
    await coro_or_task
  File "/usr/src/homeassistant/homeassistant/core.py", line 1523, in _execute_service
    await handler.job.target(service_call)
  File "/usr/src/homeassistant/homeassistant/components/hassio/__init__.py", line 449, in async_handle_core_service
    errors = await conf_util.async_check_ha_config_file(hass)
  File "/usr/src/homeassistant/homeassistant/config.py", line 885, in async_check_ha_config_file
    res = await check_config.async_check_ha_config_file(hass)
  File "/usr/src/homeassistant/homeassistant/helpers/check_config.py", line 204, in async_check_ha_config_file
    platform = p_integration.get_platform(domain)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 499, in get_platform
    cache[full_name] = self._import_platform(platform_name)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 504, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
  File "/usr/local/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/config/custom_components/samsungtv_custom/media_player.py", line 14, in <module>
    from samsungtvws import SamsungTVWS
  File "/usr/local/lib/python3.8/site-packages/samsungtvws/__init__.py", line 22, in <module>
    from .remote import SamsungTVWS
  File "/usr/local/lib/python3.8/site-packages/samsungtvws/remote.py", line 147
    header={"connection": "Upgrade"}
    ^
SyntaxError: invalid syntax
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant