Collection of code styling tweaks (#87344)
This commit is contained in:
parent
3ccd0ef013
commit
fcb612cd6f
52 changed files with 391 additions and 214 deletions
|
@ -1,4 +1,4 @@
|
|||
"""Methods and classes related to executing Z-Wave commands and publishing these to hass."""
|
||||
"""Methods and classes related to executing Z-Wave commands."""
|
||||
from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
|
@ -100,7 +100,10 @@ def raise_exceptions_from_results(
|
|||
|
||||
|
||||
class ZWaveServices:
|
||||
"""Class that holds our services (Zwave Commands) that should be published to hass."""
|
||||
"""Class that holds our services (Zwave Commands).
|
||||
|
||||
Services that should be published to hass.
|
||||
"""
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
@ -157,8 +160,8 @@ class ZWaveServices:
|
|||
if first_node and not all(node.client.driver is not None for node in nodes):
|
||||
raise vol.Invalid(f"Driver not ready for all nodes: {nodes}")
|
||||
|
||||
# If any nodes don't have matching home IDs, we can't run the command because
|
||||
# we can't multicast across multiple networks
|
||||
# If any nodes don't have matching home IDs, we can't run the command
|
||||
# because we can't multicast across multiple networks
|
||||
if (
|
||||
first_node
|
||||
and first_node.client.driver # We checked the driver was ready above.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue