From 1f48e384118297af82b3f32f7e085be3c64a2b88 Mon Sep 17 00:00:00 2001
From: jo <ljonas@riseup.net>
Date: Tue, 14 Mar 2023 11:49:44 +0100
Subject: [PATCH] test(api): fix linting errors

---
 api/libretime_api/core/models/preference.py | 2 +-
 api/libretime_api/settings/prod.py          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/api/libretime_api/core/models/preference.py b/api/libretime_api/core/models/preference.py
index d535c3a17..4057ef2a2 100644
--- a/api/libretime_api/core/models/preference.py
+++ b/api/libretime_api/core/models/preference.py
@@ -78,7 +78,7 @@ class Preference(models.Model):
         entries = dict(cls.site.values_list("key", "value"))
         return StreamPreferences(
             input_fade_transition=float(entries.get("default_transition_fade") or 0.0),
-            message_format=int(entries.get("stream_label_format") or 0),
+            message_format=MessageFormatKind(entries.get("stream_label_format") or 0),
             message_offline=entries.get("off_air_meta") or "Offline",
         )
 
diff --git a/api/libretime_api/settings/prod.py b/api/libretime_api/settings/prod.py
index 25312db67..03aa1572d 100644
--- a/api/libretime_api/settings/prod.py
+++ b/api/libretime_api/settings/prod.py
@@ -22,7 +22,7 @@ from ._schema import Config
 LIBRETIME_LOG_FILEPATH = getenv("LIBRETIME_LOG_FILEPATH")
 LIBRETIME_CONFIG_FILEPATH = getenv("LIBRETIME_CONFIG_FILEPATH")
 
-CONFIG = Config(LIBRETIME_CONFIG_FILEPATH)
+CONFIG = Config(LIBRETIME_CONFIG_FILEPATH)  # type: ignore[arg-type, misc]
 
 SECRET_KEY = CONFIG.general.api_key