From 5958ef363f7f0a2b5cfd36ac465d1f7146d46a8a Mon Sep 17 00:00:00 2001
From: "J. Nick Koston" <nick@koston.org>
Date: Wed, 14 Aug 2024 10:02:44 -0500
Subject: [PATCH] Bump pylutron_caseta to 0.21.1 (#123924)

---
 homeassistant/components/lutron_caseta/manifest.json  | 2 +-
 requirements_all.txt                                  | 2 +-
 requirements_test_all.txt                             | 2 +-
 script/licenses.py                                    | 1 -
 tests/components/lutron_caseta/test_device_trigger.py | 5 +++--
 5 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/homeassistant/components/lutron_caseta/manifest.json b/homeassistant/components/lutron_caseta/manifest.json
index 48445f645aa..3c6348ed4da 100644
--- a/homeassistant/components/lutron_caseta/manifest.json
+++ b/homeassistant/components/lutron_caseta/manifest.json
@@ -9,7 +9,7 @@
   },
   "iot_class": "local_push",
   "loggers": ["pylutron_caseta"],
-  "requirements": ["pylutron-caseta==0.20.0"],
+  "requirements": ["pylutron-caseta==0.21.1"],
   "zeroconf": [
     {
       "type": "_lutron._tcp.local.",
diff --git a/requirements_all.txt b/requirements_all.txt
index 21e4a9b7404..c00200df958 100644
--- a/requirements_all.txt
+++ b/requirements_all.txt
@@ -1990,7 +1990,7 @@ pylitejet==0.6.2
 pylitterbot==2023.5.0
 
 # homeassistant.components.lutron_caseta
-pylutron-caseta==0.20.0
+pylutron-caseta==0.21.1
 
 # homeassistant.components.lutron
 pylutron==0.2.15
diff --git a/requirements_test_all.txt b/requirements_test_all.txt
index 6cf59077ffd..6cd024839f8 100644
--- a/requirements_test_all.txt
+++ b/requirements_test_all.txt
@@ -1592,7 +1592,7 @@ pylitejet==0.6.2
 pylitterbot==2023.5.0
 
 # homeassistant.components.lutron_caseta
-pylutron-caseta==0.20.0
+pylutron-caseta==0.21.1
 
 # homeassistant.components.lutron
 pylutron==0.2.15
diff --git a/script/licenses.py b/script/licenses.py
index 0c2870aebd8..1e01fb6111b 100644
--- a/script/licenses.py
+++ b/script/licenses.py
@@ -159,7 +159,6 @@ EXCEPTIONS = {
     "pyTibber",  # https://github.com/Danielhiversen/pyTibber/pull/294
     "pybbox",  # https://github.com/HydrelioxGitHub/pybbox/pull/5
     "pyeconet",  # https://github.com/w1ll1am23/pyeconet/pull/41
-    "pylutron-caseta",  # https://github.com/gurumitts/pylutron-caseta/pull/168
     "pysabnzbd",  # https://github.com/jeradM/pysabnzbd/pull/6
     "pyvera",  # https://github.com/maximvelichko/pyvera/pull/164
     "pyxeoma",  # https://github.com/jeradM/pyxeoma/pull/11
diff --git a/tests/components/lutron_caseta/test_device_trigger.py b/tests/components/lutron_caseta/test_device_trigger.py
index 405c504dee1..9353b897602 100644
--- a/tests/components/lutron_caseta/test_device_trigger.py
+++ b/tests/components/lutron_caseta/test_device_trigger.py
@@ -487,8 +487,9 @@ async def test_if_fires_on_button_event_late_setup(
         },
     )
 
-    await hass.config_entries.async_setup(config_entry_id)
-    await hass.async_block_till_done()
+    with patch("homeassistant.components.lutron_caseta.Smartbridge.create_tls"):
+        await hass.config_entries.async_setup(config_entry_id)
+        await hass.async_block_till_done()
 
     message = {
         ATTR_SERIAL: device.get("serial"),
-- 
GitLab