ignore gateways that don't implement required commands
This commit is contained in:
parent
87e9617499
commit
392ec2fc13
1 changed files with 6 additions and 1 deletions
|
@ -179,7 +179,12 @@ class Gateway:
|
||||||
await gateway.discover_commands(soap_socket)
|
await gateway.discover_commands(soap_socket)
|
||||||
requirements_met = all([required in gateway._registered_commands for required in required_commands])
|
requirements_met = all([required in gateway._registered_commands for required in required_commands])
|
||||||
if not requirements_met:
|
if not requirements_met:
|
||||||
log.debug("found gateway, but it does not implement required soap commands")
|
not_met = [
|
||||||
|
required for required in required_commands if required not in gateway._registered_commands
|
||||||
|
]
|
||||||
|
log.warning("found gateway %s at %s, but it does not implement required soap commands: %s",
|
||||||
|
gateway.manufacturer_string, gateway.location, not_met)
|
||||||
|
ignored.add(datagram.location)
|
||||||
continue
|
continue
|
||||||
else:
|
else:
|
||||||
log.debug('found gateway device %s', datagram.location)
|
log.debug('found gateway device %s', datagram.location)
|
||||||
|
|
Loading…
Reference in a new issue