Skip to content

Commit cacef48

Browse files
autoruffbouwew
authored andcommitted
fixup: pair-plus Python code fixed using Ruff
1 parent 7b2391e commit cacef48

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

plugwise_usb/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,23 +132,23 @@ def hardware(self) -> str:
132132
@property
133133
def mac_stick(self) -> str | None:
134134
"""MAC address of USB-Stick.
135-
135+
136136
Returns None when the connection to the Stick fails.
137137
"""
138138
return self._controller.mac_stick
139139

140140
@property
141141
def mac_coordinator(self) -> str | None:
142142
"""MAC address of the network coordinator (Circle+).
143-
143+
144144
Returns none when there is no connection, not paired, not present in the network.
145145
"""
146146
return self._controller.mac_coordinator
147147

148148
@property
149149
def name(self) -> str | None:
150150
"""Return name of Stick.
151-
151+
152152
Returns None when the connection to the Stick fails.
153153
"""
154154
return self._controller.stick_name

plugwise_usb/connection/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def network_id(self) -> int | None:
9090
def network_online(self) -> bool:
9191
"""Return the network state.
9292
93-
The ZigBee network is online when the Stick is connected and a
93+
The ZigBee network is online when the Stick is connected and a
9494
StickInitResponse indicates that the ZigBee network is online.
9595
"""
9696
if not self._manager.is_connected:
@@ -279,7 +279,7 @@ async def send(
279279
return await self._queue.submit(request)
280280
try:
281281
return await self._queue.submit(request)
282-
except (NodeError, StickError):
282+
except NodeError, StickError:
283283
return None
284284

285285
def _reset_states(self) -> None:

0 commit comments

Comments
 (0)