From d7e33429e3fe448ddfa8f49d7657baa161e21074 Mon Sep 17 00:00:00 2001
From: Joost Lekkerkerker <joostlek@outlook.com>
Date: Mon, 15 Jul 2024 17:51:41 +0200
Subject: [PATCH] Disable MVG integration (#121975)

Disable MVGLive integration
---
 homeassistant/components/mvglive/manifest.json | 1 +
 homeassistant/components/mvglive/ruff.toml     | 5 +++++
 homeassistant/components/mvglive/sensor.py     | 1 +
 requirements_all.txt                           | 3 ---
 script/licenses.py                             | 3 ---
 5 files changed, 7 insertions(+), 6 deletions(-)
 create mode 100644 homeassistant/components/mvglive/ruff.toml

diff --git a/homeassistant/components/mvglive/manifest.json b/homeassistant/components/mvglive/manifest.json
index c4a3040dc20..f73d4612c2e 100644
--- a/homeassistant/components/mvglive/manifest.json
+++ b/homeassistant/components/mvglive/manifest.json
@@ -2,6 +2,7 @@
   "domain": "mvglive",
   "name": "MVG",
   "codeowners": [],
+  "disabled": "This integration is disabled because it uses non-open source code to operate.",
   "documentation": "https://www.home-assistant.io/integrations/mvglive",
   "iot_class": "cloud_polling",
   "loggers": ["MVGLive"],
diff --git a/homeassistant/components/mvglive/ruff.toml b/homeassistant/components/mvglive/ruff.toml
new file mode 100644
index 00000000000..38f6f586aef
--- /dev/null
+++ b/homeassistant/components/mvglive/ruff.toml
@@ -0,0 +1,5 @@
+extend = "../../../pyproject.toml"
+
+lint.extend-ignore = [
+  "F821"
+]
diff --git a/homeassistant/components/mvglive/sensor.py b/homeassistant/components/mvglive/sensor.py
index 966bfebb577..b482de8130c 100644
--- a/homeassistant/components/mvglive/sensor.py
+++ b/homeassistant/components/mvglive/sensor.py
@@ -1,5 +1,6 @@
 """Support for departure information for public transport in Munich."""
 
+# mypy: ignore-errors
 from __future__ import annotations
 
 from copy import deepcopy
diff --git a/requirements_all.txt b/requirements_all.txt
index e0cb9173a44..30fb529466e 100644
--- a/requirements_all.txt
+++ b/requirements_all.txt
@@ -59,9 +59,6 @@ PyFronius==0.7.3
 # homeassistant.components.pyload
 PyLoadAPI==1.3.2
 
-# homeassistant.components.mvglive
-PyMVGLive==1.1.4
-
 # homeassistant.components.met_eireann
 PyMetEireann==2021.8.0
 
diff --git a/script/licenses.py b/script/licenses.py
index 962795de8e0..9464a734ee8 100644
--- a/script/licenses.py
+++ b/script/licenses.py
@@ -178,9 +178,6 @@ EXCEPTIONS = {
 }
 
 TODO = {
-    "PyMVGLive": AwesomeVersion(
-        "1.1.4"
-    ),  # No license and archived https://github.com/pc-coholic/PyMVGLive
     "aiocache": AwesomeVersion(
         "0.12.2"
     ),  # https://github.com/aio-libs/aiocache/blob/master/LICENSE all rights reserved?
-- 
GitLab