From f13e176a9d2b7d38e9777b04c38db6416efaad71 Mon Sep 17 00:00:00 2001 From: Frederik Kemner Date: Tue, 29 Oct 2024 12:46:33 +0100 Subject: [PATCH] Fix Hassfest validation errors --- custom_components/stadtreinigung_hamburg/__init__.py | 3 +++ custom_components/stadtreinigung_hamburg/manifest.json | 1 + 2 files changed, 4 insertions(+) diff --git a/custom_components/stadtreinigung_hamburg/__init__.py b/custom_components/stadtreinigung_hamburg/__init__.py index d8ac68b..380cfea 100644 --- a/custom_components/stadtreinigung_hamburg/__init__.py +++ b/custom_components/stadtreinigung_hamburg/__init__.py @@ -1,9 +1,12 @@ """The Stadtreinigung Hamburg integration""" from homeassistant.config_entries import ConfigEntry from homeassistant.core import Config, HomeAssistant +import homeassistant.helpers.config_validation as cv +from homeassistant.const import CONF_NAME DOMAIN = "stadtreinigung_hamburg" +CONFIG_SCHEMA = cv.config_entry_only_config_schema(DOMAIN) async def async_setup(hass, config): """Do not allow config via configuration.yaml""" diff --git a/custom_components/stadtreinigung_hamburg/manifest.json b/custom_components/stadtreinigung_hamburg/manifest.json index ed016d3..0708b66 100644 --- a/custom_components/stadtreinigung_hamburg/manifest.json +++ b/custom_components/stadtreinigung_hamburg/manifest.json @@ -12,5 +12,6 @@ "lxml_html_clean" ], "config_flow": true, + "iot_class": "cloud_polling", "version": "1.1.5" }