From 7ceb719d8bb7d7d1fad87b8696bd2002afb8080a Mon Sep 17 00:00:00 2001 From: Jules Dejaeghere Date: Wed, 27 Dec 2023 11:22:27 +0100 Subject: [PATCH] Update docstrings --- custom_components/irm_kmi/config_flow.py | 1 + custom_components/irm_kmi/const.py | 2 ++ custom_components/irm_kmi/coordinator.py | 2 +- custom_components/irm_kmi/data.py | 1 + custom_components/irm_kmi/weather.py | 2 ++ tests/test_config_flow.py | 2 +- tests/test_init.py | 3 ++- 7 files changed, 10 insertions(+), 3 deletions(-) diff --git a/custom_components/irm_kmi/config_flow.py b/custom_components/irm_kmi/config_flow.py index 4f24015..0f44dc6 100644 --- a/custom_components/irm_kmi/config_flow.py +++ b/custom_components/irm_kmi/config_flow.py @@ -1,3 +1,4 @@ +"""Config flow to set up IRM KMI integration via the UI""" import logging import voluptuous as vol diff --git a/custom_components/irm_kmi/const.py b/custom_components/irm_kmi/const.py index 81a8a9f..56a8b60 100644 --- a/custom_components/irm_kmi/const.py +++ b/custom_components/irm_kmi/const.py @@ -1,3 +1,5 @@ +"""Constants for the IRM KMI integration""" + from homeassistant.components.weather import (ATTR_CONDITION_CLEAR_NIGHT, ATTR_CONDITION_CLOUDY, ATTR_CONDITION_EXCEPTIONAL, diff --git a/custom_components/irm_kmi/coordinator.py b/custom_components/irm_kmi/coordinator.py index 2b6c849..66391fe 100644 --- a/custom_components/irm_kmi/coordinator.py +++ b/custom_components/irm_kmi/coordinator.py @@ -1,4 +1,4 @@ -"""Example integration using DataUpdateCoordinator.""" +"""DataUpdateCoordinator for the IRM KMI integration.""" import logging from datetime import datetime, timedelta diff --git a/custom_components/irm_kmi/data.py b/custom_components/irm_kmi/data.py index 3be4f96..135a320 100644 --- a/custom_components/irm_kmi/data.py +++ b/custom_components/irm_kmi/data.py @@ -1,3 +1,4 @@ +"""Data classes for IRM KMI integration""" from homeassistant.components.weather import Forecast diff --git a/custom_components/irm_kmi/weather.py b/custom_components/irm_kmi/weather.py index 1e169a5..226fc37 100644 --- a/custom_components/irm_kmi/weather.py +++ b/custom_components/irm_kmi/weather.py @@ -1,3 +1,5 @@ +""""Support for IRM KMI weather.""" + import logging from typing import List diff --git a/tests/test_config_flow.py b/tests/test_config_flow.py index 9e19700..b7254a4 100644 --- a/tests/test_config_flow.py +++ b/tests/test_config_flow.py @@ -1,4 +1,4 @@ -"""Tests for the Open-Meteo config flow.""" +"""Tests for the IRM KMI config flow.""" from unittest.mock import MagicMock diff --git a/tests/test_init.py b/tests/test_init.py index 291bc18..059e77e 100644 --- a/tests/test_init.py +++ b/tests/test_init.py @@ -1,4 +1,5 @@ -"""Tests for the Open-Meteo integration.""" +"""Tests for the IRM KMI integration.""" + from unittest.mock import AsyncMock import pytest