From 0dfc86956bacab67860bfcc4f813ab8860f3548f Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Fri, 3 Dec 2021 09:26:15 -1000 Subject: [PATCH] Reduce flux_led dhcp matching complexity (#60934) --- .../components/flux_led/manifest.json | 38 +------------- homeassistant/generated/dhcp.py | 50 +------------------ 2 files changed, 2 insertions(+), 86 deletions(-) diff --git a/homeassistant/components/flux_led/manifest.json b/homeassistant/components/flux_led/manifest.json index 91de8cb5b7d..60efb52934c 100644 --- a/homeassistant/components/flux_led/manifest.json +++ b/homeassistant/components/flux_led/manifest.json @@ -33,43 +33,7 @@ "hostname": "lwip*" }, { - "hostname": "zengge_0[6789b]_*" - }, - { - "hostname": "zengge_1[06789abc]_*" - }, - { - "hostname": "zengge_2[15]_*" - }, - { - "hostname": "zengge_3[35]_*" - }, - { - "hostname": "zengge_4[14]_*" - }, - { - "hostname": "zengge_5[24]_*" - }, - { - "hostname": "zengge_62_*" - }, - { - "hostname": "zengge_81_*" - }, - { - "hostname": "zengge_0[0e]_*" - }, - { - "hostname": "zengge_9[34567]_*" - }, - { - "hostname": "zengge_a[123]_*" - }, - { - "hostname": "zengge_d1_*" - }, - { - "hostname": "zengge_e[12]_*" + "hostname": "zengge_[0-9a-f][0-9a-f]_*" }, { "macaddress": "C82E47*", diff --git a/homeassistant/generated/dhcp.py b/homeassistant/generated/dhcp.py index bdef30cf201..4313aa3f486 100644 --- a/homeassistant/generated/dhcp.py +++ b/homeassistant/generated/dhcp.py @@ -103,55 +103,7 @@ DHCP = [ }, { "domain": "flux_led", - "hostname": "zengge_0[6789b]_*" - }, - { - "domain": "flux_led", - "hostname": "zengge_1[06789abc]_*" - }, - { - "domain": "flux_led", - "hostname": "zengge_2[15]_*" - }, - { - "domain": "flux_led", - "hostname": "zengge_3[35]_*" - }, - { - "domain": "flux_led", - "hostname": "zengge_4[14]_*" - }, - { - "domain": "flux_led", - "hostname": "zengge_5[24]_*" - }, - { - "domain": "flux_led", - "hostname": "zengge_62_*" - }, - { - "domain": "flux_led", - "hostname": "zengge_81_*" - }, - { - "domain": "flux_led", - "hostname": "zengge_0[0e]_*" - }, - { - "domain": "flux_led", - "hostname": "zengge_9[34567]_*" - }, - { - "domain": "flux_led", - "hostname": "zengge_a[123]_*" - }, - { - "domain": "flux_led", - "hostname": "zengge_d1_*" - }, - { - "domain": "flux_led", - "hostname": "zengge_e[12]_*" + "hostname": "zengge_[0-9a-f][0-9a-f]_*" }, { "domain": "flux_led",