Thanks!
I have now put the following in configuration.yaml:
miele:
client_id: < … >
client_secret: < … >
lang: en
I have tried with both 2 and 4 spaces before client_id, client_secret and lang.
However, still not works. I get the following error message when trying to restart Home Assistant:
r executing service <ServiceCall homeassistant.restart (c:fe6fd31a253d4d3fb2209e47629f4b52)>
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/core.py”, line 1117, in _event_to_service_call
await service_handler.func(service_call)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/init.py”, line 175, in async_handle_core_service
errors = yield from conf_util.async_check_ha_config_file(hass)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/config.py”, line 793, in async_check_ha_config_file
check_ha_config_file, hass)
File “/usr/lib/python3.5/asyncio/futures.py”, line 380, in iter
yield self # This tells Task to wait for completion.
File “/usr/lib/python3.5/asyncio/tasks.py”, line 304, in _wakeup
future.result()
File “/usr/lib/python3.5/asyncio/futures.py”, line 293, in result
raise self._exception
File “/usr/lib/python3.5/concurrent/futures/thread.py”, line 55, in run
result = self.fn(*self.args, **self.kwargs)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/scripts/check_config.py”, line 340, in check_ha_config_file
component = loader.get_component(hass, domain)
File “/srv/homeassistant/lib/python3.5/site-packages/homeassistant/loader.py”, line 94, in get_component
module = importlib.import_module(path)
File “/usr/lib/python3.5/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 986, in _gcd_import
File “”, line 969, in _find_and_load
File “”, line 958, in _find_and_load_unlocked
File “”, line 673, in _load_unlocked
File “”, line 673, in exec_module
File “”, line 222, in _call_with_frames_removed
File “/home/homeassistant/.homeassistant/custom_components/miele/init.py”, line 20, in
from .miele_at_home import MieleClient, MieleOAuth
File “/home/homeassistant/.homeassistant/custom_components/miele/miele_at_home.py”, line 27
_LOGGER.error(f’Failed to retrieve devices: {devices.status_code}’)
^
SyntaxError: invalid syntax