From 11bcffced2e09d6cf6156018d44bef64796145be Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Thu, 15 Oct 2026 14:59:27 -1000 Subject: [PATCH] Parenthesize the split filter strings --- esphome/components/fusb302b/__init__.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/esphome/components/fusb302b/__init__.py b/esphome/components/fusb302b/__init__.py index afe268d4c3f..4fefdc4b569 100644 --- a/esphome/components/fusb302b/__init__.py +++ b/esphome/components/fusb302b/__init__.py @@ -87,14 +87,18 @@ _STATE_TRIGGERS = ( # Negotiation is finished: a new PD contract is in place, or the source does not speak PD. ( CONF_ON_POWER_READY, - "state == fusb302b::PdState::PD_STATE_EXPLICIT_CONTRACT" - " || state == fusb302b::PdState::PD_STATE_PD_TIMEOUT", + ( + "state == fusb302b::PdState::PD_STATE_EXPLICIT_CONTRACT" + " || state == fusb302b::PdState::PD_STATE_PD_TIMEOUT" + ), ), # Communication with the chip fails. ( CONF_ON_ERROR, - "state == fusb302b::PdState::PD_STATE_ERROR" - " && previous != fusb302b::PdState::PD_STATE_ERROR", + ( + "state == fusb302b::PdState::PD_STATE_ERROR" + " && previous != fusb302b::PdState::PD_STATE_ERROR" + ), ), )