1
0
mirror of https://github.com/natekspencer/hacs-oasis_mini.git synced 2025-12-06 18:44:14 -05:00

Add noqa: ARG001 on unused hass

This commit is contained in:
Nathan Spencer
2025-11-24 05:17:26 +00:00
parent 04be6626a7
commit 873d2d4bb0
14 changed files with 34 additions and 26 deletions

View File

@@ -6,6 +6,7 @@ import base64
from datetime import UTC, datetime
import logging
import math
from typing import Any
from xml.etree.ElementTree import Element, SubElement, tostring
from cryptography.hazmat.primitives.ciphers import Cipher, algorithms, modes
@@ -27,12 +28,12 @@ def _bit_to_bool(val: str) -> bool:
return val == "1"
def _parse_int(val: str) -> int:
def _parse_int(val: Any | None) -> int:
"""
Parse a string into an integer, falling back to 0 when conversion fails.
Parameters:
val (str): String potentially containing an integer value.
val (Any | None): String potentially containing an integer value.
Returns:
int: The parsed integer, or 0 if `val` cannot be converted.