2Fake/devolo_home_control_api

View on GitHub
Bump actions/checkout from 4.1.4 to 4.1.5 #636
dependabot[bot] authored 1ad03c48
complete00:00:19
1
git clone
2
codeclimate validate-config
View output
codeclimate validate-config
No errors or warnings found in .codeclimate.json.
3
codeclimate prepare
View output
codeclimate prepare
4
builder pull-engines
View output
determining required images
docker pull codeclimate/codeclimate-editorconfig:b855
b855: Pulling from codeclimate/codeclimate-editorconfig
a073c86ecf9e: Pulling fs layer
0e28711eb56d: Pulling fs layer
e460dd483fdd: Pulling fs layer
54992f8503df: Pulling fs layer
c2238fe48590: Pulling fs layer
cb4230eeef73: Pulling fs layer
b65d797fb447: Pulling fs layer
b85108c1334c: Pulling fs layer
54992f8503df: Waiting
c2238fe48590: Waiting
cb4230eeef73: Waiting
b65d797fb447: Waiting
b85108c1334c: Waiting
e460dd483fdd: Download complete
a073c86ecf9e: Verifying Checksum
a073c86ecf9e: Download complete
0e28711eb56d: Verifying Checksum
0e28711eb56d: Download complete
a073c86ecf9e: Pull complete
54992f8503df: Download complete
c2238fe48590: Verifying Checksum
c2238fe48590: Download complete
cb4230eeef73: Download complete
b85108c1334c: Verifying Checksum
b85108c1334c: Download complete
b65d797fb447: Verifying Checksum
b65d797fb447: Download complete
0e28711eb56d: Pull complete
e460dd483fdd: Pull complete
54992f8503df: Pull complete
c2238fe48590: Pull complete
cb4230eeef73: Pull complete
b65d797fb447: Pull complete
b85108c1334c: Pull complete
Digest: sha256:6d2c4a9632c2f4d3d5c7ea8aa58739fb07a6276a39847a8c00276e38cf1de302
Status: Downloaded newer image for registry.prod.codeclimate.net/codeclimate/codeclimate-editorconfig:b855
5
structure
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
6
duplication
View output
12
Parser process id: 12
codeclimate-parser socket not present
waiting 1s...
I, [2024-05-13T05:48:09.767521 #1]  INFO -- : Skipping file example.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 20
    print(f'{self.name} got message "{message}"')
                                               ^
SyntaxError: invalid syntax


I, [2024-05-13T05:48:09.767578 #1]  INFO -- : Skipping file ./devolo_home_control_api/mydevolo.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 22
    def __init__(self) -> None:
                       ^
SyntaxError: invalid syntax


I, [2024-05-13T05:48:09.778667 #1]  INFO -- : Skipping file ./devolo_home_control_api/properties/remote_control_property.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 24
    def __init__(self, element_uid: str, tz: tzinfo, setter: Callable[[str, int], bool], **kwargs: int) -> None:
                                  ^
SyntaxError: invalid syntax


I, [2024-05-13T05:48:09.781402 #1]  INFO -- : Skipping file ./devolo_home_control_api/properties/sensor_property.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 20
    def __init__(self, element_uid: str, tz: tzinfo, **kwargs: str) -> None:
                                  ^
SyntaxError: invalid syntax


I, [2024-05-13T05:48:09.789382 #1]  INFO -- : Skipping file ./devolo_home_control_api/properties/multi_level_switch_property.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 29
    def __init__(self, element_uid: str, tz: tzinfo, setter: Callable[[str, float], bool], **kwargs: Any) -> None:
                                  ^
SyntaxError: invalid syntax


I, [2024-05-13T05:48:09.792240 #1]  INFO -- : Skipping file ./devolo_home_control_api/properties/binary_sensor_property.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 20
    def __init__(self, element_uid: str, tz: tzinfo, **kwargs: Any) -> None:
                                  ^
SyntaxError: invalid syntax


I, [2024-05-13T05:48:09.800343 #1]  INFO -- : Skipping file ./devolo_home_control_api/properties/consumption_property.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 25
    def __init__(self, element_uid: str, tz: tzinfo, **kwargs: float) -> None:
                                  ^
SyntaxError: invalid syntax


I, [2024-05-13T05:48:09.803363 #1]  INFO -- : Skipping file ./devolo_home_control_api/properties/humidity_bar_property.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 22
    def __init__(self, element_uid: str, tz: tzinfo, **kwargs: Any) -> None:
                                  ^
SyntaxError: invalid syntax


I, [2024-05-13T05:48:09.811284 #1]  INFO -- : Skipping file ./devolo_home_control_api/properties/property.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 17
    def __init__(self, element_uid: str, tz: tzinfo) -> None:
                                  ^
SyntaxError: invalid syntax


I, [2024-05-13T05:48:09.814217 #1]  INFO -- : Skipping file ./devolo_home_control_api/properties/settings_property.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 25
    calibration_status: bool
                      ^
SyntaxError: invalid syntax


I, [2024-05-13T05:48:09.825470 #1]  INFO -- : Skipping file ./devolo_home_control_api/properties/multi_level_sensor_property.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 23
    def __init__(self, element_uid: str, tz: tzinfo, **kwargs: Any) -> None:
                                  ^
SyntaxError: invalid syntax


I, [2024-05-13T05:48:09.834048 #1]  INFO -- : Skipping file ./devolo_home_control_api/properties/binary_switch_property.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 23
    def __init__(self, element_uid: str, tz: tzinfo, setter: Callable[[str, bool], bool], **kwargs: bool) -> None:
                                  ^
SyntaxError: invalid syntax


I, [2024-05-13T05:48:09.836045 #1]  INFO -- : Skipping file ./devolo_home_control_api/backend/mprm.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 28
    def __init__(self) -> None:
                       ^
SyntaxError: invalid syntax


I, [2024-05-13T05:48:09.844611 #1]  INFO -- : Skipping file ./devolo_home_control_api/backend/mprm_websocket.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 36
    def __init__(self) -> None:
                       ^
SyntaxError: invalid syntax


I, [2024-05-13T05:48:09.846791 #1]  INFO -- : Skipping file ./devolo_home_control_api/backend/mprm_rest.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 26
    def __init__(self) -> None:
                       ^
SyntaxError: invalid syntax


I, [2024-05-13T05:48:09.861911 #1]  INFO -- : Skipping file ./devolo_home_control_api/publisher/publisher.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 11
    def __init__(self, events: list[Any] | KeysView) -> None:
                             ^
SyntaxError: invalid syntax


I, [2024-05-13T05:48:09.869475 #1]  INFO -- : Skipping file ./devolo_home_control_api/publisher/updater.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 31
    def __init__(self, devices: dict[str, Zwave], gateway: Gateway, publisher: Publisher) -> None:
                              ^
SyntaxError: invalid syntax


I, [2024-05-13T05:48:09.885876 #1]  INFO -- : Skipping file ./devolo_home_control_api/helper/uid.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 12
    def get_device_uid_from_element_uid(element_uid: str) -> str:
                                                   ^
SyntaxError: invalid syntax


I, [2024-05-13T05:48:09.896862 #1]  INFO -- : Skipping file ./devolo_home_control_api/helper/string.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 10
    def camel_case_to_snake_case(expression: str) -> str:
                                           ^
SyntaxError: invalid syntax


I, [2024-05-13T05:48:09.905658 #1]  INFO -- : Skipping file ./devolo_home_control_api/exceptions/general.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 7
    def __init__(self) -> None:
                       ^
SyntaxError: invalid syntax


I, [2024-05-13T05:48:09.907739 #1]  INFO -- : Skipping file ./devolo_home_control_api/exceptions/gateway.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 7
    def __init__(self) -> None:
                       ^
SyntaxError: invalid syntax


I, [2024-05-13T05:48:09.918356 #1]  INFO -- : Skipping file ./devolo_home_control_api/exceptions/device.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 8
    def __init__(self, element_uid: str, property_class: str) -> None:
                                  ^
SyntaxError: invalid syntax


I, [2024-05-13T05:48:09.927582 #1]  INFO -- : Skipping file ./devolo_home_control_api/devices/gateway.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 21
    def __init__(self, gateway_id: str, mydevolo_instance: Mydevolo) -> None:
                                 ^
SyntaxError: invalid syntax


I, [2024-05-13T05:48:09.938280 #1]  INFO -- : Skipping file ./devolo_home_control_api/devices/zwave.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 45
    binary_sensor_property: dict[str, BinarySensorProperty]
                          ^
SyntaxError: invalid syntax


I, [2024-05-13T05:48:09.939815 #1]  INFO -- : Skipping file ./devolo_home_control_api/homecontrol.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 46
    def __init__(self, gateway_id: str, mydevolo_instance: Mydevolo, zeroconf_instance: Zeroconf | None = None) -> None:
                                 ^
SyntaxError: invalid syntax
7
bandit
bandit engine documentation
View output
[main]	INFO	profile include tests: None
[main]	INFO	profile exclude tests: None
[main]	INFO	cli include tests: None
[main]	INFO	cli exclude tests: None
[node_visitor]	INFO	Unable to find qualified name for module: example.py
8
editorconfig
editorconfig engine documentation
View output
.editorconfig file required
9
sonar-python
sonar-python engine documentation
View output
INFO: Java 1.8.0_111-internal Oracle Corporation (64-bit)
INFO: Linux 4.4.0-1128-aws amd64
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-core-2.17.0.899.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-cli-2.1.0.566.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
INFO: Index files
INFO: 42 files indexed
ERROR: Unable to parse file: /code/devolo_home_control_api/properties/remote_control_property.py
ERROR: Parse error at line 32 column 25:

   27: element_uid, self.__class__.__name__)
   28: 
   29:         super().__init__(element_uid, tz)
   30:         self._setter = setter
   31: 
  -->          self._key_pressed: int = kwargs.pop("key_pressed", 0)
   33:         self.key_count: int = kwargs.pop("key_count", 0)
   34: 
   35:     @property

ERROR: Unable to parse file: /code/devolo_home_control_api/properties/sensor_property.py
ERROR: Parse error at line 24 column 24:

   20: : tzinfo, **kwargs: str) -> None:
   21:         """Initialize the sensor."""
   22:         super().__init__(element_uid, tz)
   23: 
  -->          self.sensor_type: str = kwargs.pop("sensor_type", "")
   25:         self.sub_type: str = kwargs.pop("sub_type", "")
   26: EOF

ERROR: Unable to parse file: /code/devolo_home_control_api/properties/multi_level_switch_property.py
ERROR: Parse error at line 39 column 19:

   34: element_uid, self.__class__.__name__)
   35: 
   36:         super().__init__(element_uid, tz)
   37:         self._setter = setter
   38: 
  -->          self._value: float = kwargs.pop("value", 0.0)
   40:         self.switch_type: str = kwargs.pop("switch_type", "")
   41:         self.max

ERROR: Unable to parse file: /code/devolo_home_control_api/properties/binary_sensor_property.py
ERROR: Parse error at line 29 column 19:

   25: raise WrongElementError(element_uid, self.__class__.__name__)
   26: 
   27:         super().__init__(element_uid, tz, **kwargs)
   28: 
  -->          self._state: bool = kwargs.pop("state", False)
   30: 
   31:     @property
   32:     def last_activity(self) -> datetime:
   33:         """Date and time the state of the binary sensor was last updated."""
   34:         return

ERROR: Unable to parse file: /code/devolo_home_control_api/properties/consumption_property.py
ERROR: Parse error at line 32 column 21:

   27: :
   28:             raise WrongElementError(element_uid, self.__class__.__name__)
   29: 
   30:         super().__init__(element_uid, tz)
   31: 
  -->          self._current: float = kwargs.pop("current", 0.0)
   33:         self.current_unit = "W"
   34:         self._total: float = kwargs.pop("total",

ERROR: Unable to parse file: /code/devolo_home_control_api/properties/humidity_bar_property.py
ERROR: Parse error at line 29 column 19:

   25: raise WrongElementError(element_uid, self.__class__.__name__)
   26: 
   27:         super().__init__(element_uid, tz, **kwargs)
   28: 
  -->          self._value: int = kwargs.pop("value", 0)
   30:         self.zone: int = kwargs.pop("zone", 0)
   31: 
   32:     @property

ERROR: Unable to parse file: /code/devolo_home_control_api/properties/settings_property.py
ERROR: Parse error at line 25 column 22:

    6: typing import Any, Callable
    7: 
    8: from devolo_home_control_api.exceptions import WrongElementError
    9: 
   10: from .property import Property
   11: 
   12: 
   13: class SettingsProperty(Property):
   14:     """
   15:     Object for settings. Basically, everything can be stored in here as long as there is a corresponding functional item on
   16:     the gateway. This is to be as flexible to gateway firmware changes as possible. So if new attributes appear or old ones
   17:     are removed, they should be handled at least in reading them. Nevertheless, a few unwanted attributes are filtered.
   18: 
   19:     :param element_uid: Element UID, something like acs.hdm:ZWave:CBC56091/24
   20:     :param tz: Timezone the last activity is recorded in
   21:     :param setter: Method to call on setting the state
   22:     :param **kwargs: Any setting, that shall be available in this object
   23:     """
   24: 
  -->      calibration_status: bool
   26:     direction: bool
   27:     events_enabled: bool
   28:     icon: str
   29:     inverted: int
   30:     led_setting: bool
   31:     local_switching: bool
   32:     motion_sensitivity: int

ERROR: Unable to parse file: /code/devolo_home_control_api/properties/multi_level_sensor_property.py
ERROR: Parse error at line 37 column 19:

   33: raise WrongElementError(element_uid, self.__class__.__name__)
   34: 
   35:         super().__init__(element_uid, tz, **kwargs)
   36: 
  -->          self._value: float = kwargs.pop("value", 0.0)
   38:         self._unit: int = kwargs.pop("unit", 0)
   39: 
   40:     @property

ERROR: Unable to parse file: /code/devolo_home_control_api/properties/binary_switch_property.py
ERROR: Parse error at line 31 column 19:

   26: element_uid, self.__class__.__name__)
   27: 
   28:         super().__init__(element_uid, tz)
   29:         self._setter = setter
   30: 
  -->          self._state: bool = kwargs.pop("state", False)
   32:         self.enabled: bool = kwargs.pop("enabled", False)
   33: 
   34:     @property

ERROR: Unable to parse file: /code/devolo_home_control_api/backend/mprm.py
ERROR: Parse error at line 30 column 22:

   19: MprmWebsocket
   20: 
   21: 
   22: class Mprm(MprmWebsocket, ABC):
   23:     """
   24:     The abstract Mprm object handles the connection to the devolo Cloud (remote) or the gateway in your LAN (local). Either
   25:     way is chosen, depending on detecting the gateway via mDNS.
   26:     """
   27: 
   28:     def __init__(self) -> None:
   29:         """Initialize communication."""
  -->          self._zeroconf: Zeroconf | None
   31: 
   32:         super().__init__()
   33: 
   34:         self.detect_gateway_in_lan()
   35:         self.create_connection()
   36: 
   37:     def create_connection(self

ERROR: Unable to parse file: /code/devolo_home_control_api/backend/mprm_websocket.py
ERROR: Parse error at line 39 column 16:

   25: ):
   26:     """
   27:     The abstract MprmWebsocket object handles calls to the mPRM via websockets. It does not cover all API calls, just those
   28:     requested up to now. All calls are done in a gateway context, so you have to create a derived class, that provides a
   29:     Gateway object and a Session object. Further, the derived class needs to implement methods to connect to the websocket,
   30:     either local or remote. Last but not least, the derived class needs to implement a method that is called on new messages.
   31: 
   32:     The websocket connection itself runs in a thread, that might not terminate as expected. Using a with-statement is
   33:     recommended.
   34:     """
   35: 
   36:     def __init__(self) -> None:
   37:         """Initialize websocket communication."""
   38:         super().__init__()
  -->          self._ws: websocket.WebSocketApp = None
   40:         self._connected = False                                                               
   41:         self._reachable = True                                                                 
   42:         self._event_sequence = 0
   43: 
   44:     def __enter__(self

ERROR: Unable to parse file: /code/devolo_home_control_api/backend/mprm_rest.py
ERROR: Parse error at line 35 column 22:

   30: getLogger(self.__class__.__name__)
   31:         self._data_id = 0
   32:         self._local_ip = ""
   33:         self._url = ""
   34: 
  -->          self._mydevolo: Mydevolo
   36:         self._session: Session
   37:         self.gateway: Gateway
   38: 
   39:     def get_all_devices(self) -> list[str]:
   40:         

ERROR: Unable to parse file: /code/devolo_home_control_api/publisher/publisher.py
ERROR: Parse error at line 14 column 20:

   11: ] | KeysView) -> None:
   12:         """Initialize the publisher."""
   13:         self._logger = logging.getLogger(self.__class__.__name__)
  -->          self._events: dict[Any, Any] = {event: {} for event in events}
   15: 
   16:     def add_event(self, event: str) -

ERROR: Unable to parse file: /code/devolo_home_control_api/publisher/updater.py
ERROR: Parse error at line 38 column 29:

   33: getLogger(self.__class__.__name__)
   34:         self._gateway = gateway
   35:         self._publisher = publisher
   36: 
   37:         self.devices = devices
  -->          self.on_device_change: Callable[[list[str]], tuple[str, str]] | None = None
   39: 
   40:     def update(self, message:

ERROR: Unable to parse file: /code/devolo_home_control_api/devices/gateway.py
ERROR: Parse error at line 37 column 25:

   33: ._mydevolo.get_timezone()) or timezone.utc
   34:         self.firmware_version = details.get("firmwareVersion")
   35: 
   36:         try:
  -->              self.full_url: str | None = self._mydevolo.get_full_url(self.id)
   38:         except GatewayOfflineError:
   39:             self.full_url = None
   40: 
   41: 
   42:         self

ERROR: Unable to parse file: /code/devolo_home_control_api/devices/zwave.py
ERROR: Parse error at line 45 column 26:

   15: HumidityBarProperty,
   16:         MultiLevelSensorProperty,
   17:         MultiLevelSwitchProperty,
   18:         RemoteControlProperty,
   19:         SettingsProperty,
   20:     )
   21:     from devolo_home_control_api.properties.property import Property
   22: 
   23: 
   24: class Zwave:
   25:     """
   26:     Representing object for Z-Wave devices. Basically, everything can be stored in here. This is to be as flexible to gateway
   27:     firmware changes as possible. So if new attributes appear or old ones are removed, they should be handled at least in
   28:     reading them. Nevertheless, a few unwanted attributes are filtered.
   29: 
   30:     :param mydevolo_instance: Mydevolo instance for talking to the devolo Cloud
   31:     :key batteryLevel: Battery Level of the device in percent, -1 if mains powered
   32:     :type batteryLevel: int
   33:     :key elementUIDs: All element UIDs the device has
   34:     :type elementUIDs: List[str]
   35:     :key manID: Manufacturer ID as registered at the Z-Wave alliance
   36:     :type manID: str
   37:     :key prodID: Product ID as registered at the Z-Wave alliance
   38:     :type prodID: str
   39:     :key prodTypeID: Product type ID as registered at the Z-Wave alliance
   40:     :type prodTypeID: str
   41:     :key status: Online status of the device
   42:     :type status: int
   43:     """
   44: 
  -->      binary_sensor_property: dict[str, BinarySensorProperty]
   46:     binary_switch_property: dict[str, BinarySwitchProperty]
   47:     consumption_property: dict[str, ConsumptionProperty]
   48:     humidity_bar_property: dict[

ERROR: Unable to parse file: /code/devolo_home_control_api/homecontrol.py
ERROR: Parse error at line 62 column 20:

   55: zeroconf_instance
   56:         self.gateway = Gateway(gateway_id, mydevolo_instance)
   57: 
   58:         super().__init__()
   59:         self._grouping()
   60: 
   61: 
  -->          self.devices: dict[str, Zwave] = {}
   63:         self._inspect_devices(self.get_all_devices())
   64: 
   65:         self.device_names = {
   66:             f"{device.settings_property['general_device_settings'].name}\\"
   67:             f"{device.settings_property['general_device_settings'].zone}":

INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 0.405s
INFO: Final Memory: 6M/295M
INFO: ------------------------------------------------------------------------