From 5f02f3caa947a86d0cc277a9b3f66d3597342b33 Mon Sep 17 00:00:00 2001
From: Joost Lekkerkerker <joostlek@outlook.com>
Date: Fri, 12 Jul 2024 16:09:07 +0200
Subject: [PATCH] Disable blinkstick integration (#121846)

---
 homeassistant/components/blinksticklight/light.py      | 3 ++-
 homeassistant/components/blinksticklight/manifest.json | 1 +
 homeassistant/components/blinksticklight/ruff.toml     | 5 +++++
 requirements_all.txt                                   | 3 ---
 script/licenses.py                                     | 3 ---
 5 files changed, 8 insertions(+), 7 deletions(-)
 create mode 100644 homeassistant/components/blinksticklight/ruff.toml

diff --git a/homeassistant/components/blinksticklight/light.py b/homeassistant/components/blinksticklight/light.py
index a789a7e0503..19ac5f80242 100644
--- a/homeassistant/components/blinksticklight/light.py
+++ b/homeassistant/components/blinksticklight/light.py
@@ -1,10 +1,11 @@
 """Support for Blinkstick lights."""
 
+# mypy: ignore-errors
 from __future__ import annotations
 
 from typing import Any
 
-from blinkstick import blinkstick
+# from blinkstick import blinkstick
 import voluptuous as vol
 
 from homeassistant.components.light import (
diff --git a/homeassistant/components/blinksticklight/manifest.json b/homeassistant/components/blinksticklight/manifest.json
index e3a6638f2a9..70fac896ff2 100644
--- a/homeassistant/components/blinksticklight/manifest.json
+++ b/homeassistant/components/blinksticklight/manifest.json
@@ -2,6 +2,7 @@
   "domain": "blinksticklight",
   "name": "BlinkStick",
   "codeowners": [],
+  "disabled": "This integration is disabled because it uses non-open source code to operate.",
   "documentation": "https://www.home-assistant.io/integrations/blinksticklight",
   "iot_class": "local_polling",
   "loggers": ["blinkstick"],
diff --git a/homeassistant/components/blinksticklight/ruff.toml b/homeassistant/components/blinksticklight/ruff.toml
new file mode 100644
index 00000000000..1b02a0b8eaf
--- /dev/null
+++ b/homeassistant/components/blinksticklight/ruff.toml
@@ -0,0 +1,5 @@
+extend = "../../../pyproject.toml"
+
+lint.extend-ignore = [
+  "F821"
+]
\ No newline at end of file
diff --git a/requirements_all.txt b/requirements_all.txt
index 8abb654051e..e27fc121d63 100644
--- a/requirements_all.txt
+++ b/requirements_all.txt
@@ -12,9 +12,6 @@ AIOSomecomfort==0.0.25
 # homeassistant.components.adax
 Adax-local==0.1.5
 
-# homeassistant.components.blinksticklight
-BlinkStick==1.2.0
-
 # homeassistant.components.doorbird
 DoorBirdPy==3.0.2
 
diff --git a/script/licenses.py b/script/licenses.py
index 54774bbe2f7..a89bfedefc8 100644
--- a/script/licenses.py
+++ b/script/licenses.py
@@ -178,9 +178,6 @@ EXCEPTIONS = {
 }
 
 TODO = {
-    "BlinkStick": AwesomeVersion(
-        "1.2.0"
-    ),  # Proprietary license https://github.com/arvydas/blinkstick-python
     "PyMVGLive": AwesomeVersion(
         "1.1.4"
     ),  # No license and archived https://github.com/pc-coholic/PyMVGLive
-- 
GitLab