Skip to content

Commit f5d42f3

Browse files
committed
Use constants
1 parent d891d32 commit f5d42f3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

custom_components/plugwise/config_flow.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@
4848
ANNA_WITH_ADAM,
4949
CONF_HOMEKIT_EMULATION, # pw-beta option
5050
CONF_REFRESH_INTERVAL, # pw-beta option
51-
CONTEXT,
5251
DEFAULT_PORT,
5352
DEFAULT_SCAN_INTERVAL, # pw-beta option
5453
DEFAULT_TIMEOUT,
@@ -200,11 +199,11 @@ async def async_step_zeroconf(
200199
def is_matching(self, other_flow: Self) -> bool:
201200
"""Return True if other_flow is matching this flow."""
202201
# This is an Anna, and there is already an Adam flow in progress
203-
if self.product == "smile_thermo" and other_flow.product == "smile_open_therm":
202+
if self.product == SMILE_THERMO and other_flow.product == SMILE_OPEN_THERM:
204203
return True
205204

206205
# This is an Adam, and there is already an Anna flow in progress
207-
if self.product == "smile_open_therm" and other_flow.product == "smile_thermo":
206+
if self.product == SMILE_OPEN_THERM and other_flow.product == SMILE_THERMO:
208207
self.hass.config_entries.flow.async_abort(other_flow.flow_id)
209208

210209
return False

0 commit comments

Comments
 (0)