Skip to content

Instantly share code, notes, and snippets.

@KapJI
KapJI / gen-lights.py
Created April 11, 2024 10:27
Scripts for generating lights.yaml for Home Assistant
#!/usr/bin/env python3
import sys
from collections import OrderedDict
from dataclasses import dataclass
from typing import Any
import yaml
@KapJI
KapJI / gist:75c3f59bdaa032c120d84590f49ed2d6
Created April 15, 2021 19:38
List of ignored components
homeassistant.components.adguard.*,
homeassistant.components.aemet.*,
homeassistant.components.airly.*,
homeassistant.components.alarmdecoder.*,
homeassistant.components.alexa.*,
homeassistant.components.almond.*,
homeassistant.components.amcrest.*,
homeassistant.components.analytics.*,
homeassistant.components.asuswrt.*,
homeassistant.components.atag.*,
Found 3258 errors in 599 files (checked 3869 source files)
homeassistant/components/adguard/config_flow.py:104: error: Signature of "async_step_hassio" incompatible with supertype "ConfigFlow" [override]
homeassistant/components/adguard/config_flow.py:122: error: Incompatible return value type (got "FlowResultDict", expected "Dict[str, Any]") [return-value]
homeassistant/components/adguard/config_flow.py:141: error: Incompatible return value type (got "FlowResultDict", expected "Dict[str, Any]") [return-value]
homeassistant/components/adguard/config_flow.py:155: error: Value of type "Optional[Dict[str, Any]]" is not indexable [index]
homeassistant/components/adguard/config_flow.py:156: error: Value of type "Optional[Dict[str, Any]]" is not indexable [index]
homeassistant/components/adguard/config_flow.py:167: error: Incompatible return value type (got "FlowResultDict", expected "Dict[str, Any]") [return-value]
homeassistant/components/adguard/config_flow.py:168: error: Value of type "Optional[Dict[str,