mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Update integrations to import issue_registry from helpers (#77305)
* Update integrations to import issue_registry from helpers * Update tests
This commit is contained in:
parent
0f86bb94d5
commit
c741d9d045
@ -3,15 +3,15 @@ from __future__ import annotations
|
|||||||
|
|
||||||
from ambee import AirQuality, Ambee, AmbeeAuthenticationError, Pollen
|
from ambee import AirQuality, Ambee, AmbeeAuthenticationError, Pollen
|
||||||
|
|
||||||
from homeassistant.components.repairs import (
|
|
||||||
IssueSeverity,
|
|
||||||
async_create_issue,
|
|
||||||
async_delete_issue,
|
|
||||||
)
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import CONF_API_KEY, CONF_LATITUDE, CONF_LONGITUDE, Platform
|
from homeassistant.const import CONF_API_KEY, CONF_LATITUDE, CONF_LONGITUDE, Platform
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.exceptions import ConfigEntryAuthFailed
|
from homeassistant.exceptions import ConfigEntryAuthFailed
|
||||||
|
from homeassistant.helpers.issue_registry import (
|
||||||
|
IssueSeverity,
|
||||||
|
async_create_issue,
|
||||||
|
async_delete_issue,
|
||||||
|
)
|
||||||
from homeassistant.helpers.typing import ConfigType
|
from homeassistant.helpers.typing import ConfigType
|
||||||
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator
|
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/ambee",
|
"documentation": "https://www.home-assistant.io/integrations/ambee",
|
||||||
"requirements": ["ambee==0.4.0"],
|
"requirements": ["ambee==0.4.0"],
|
||||||
"dependencies": ["repairs"],
|
|
||||||
"codeowners": ["@frenck"],
|
"codeowners": ["@frenck"],
|
||||||
"quality_scale": "platinum",
|
"quality_scale": "platinum",
|
||||||
"iot_class": "cloud_polling"
|
"iot_class": "cloud_polling"
|
||||||
|
@ -4,8 +4,6 @@ from __future__ import annotations
|
|||||||
from pydroid_ipcam import PyDroidIPCam
|
from pydroid_ipcam import PyDroidIPCam
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.repairs.issue_handler import async_create_issue
|
|
||||||
from homeassistant.components.repairs.models import IssueSeverity
|
|
||||||
from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry
|
from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
CONF_HOST,
|
CONF_HOST,
|
||||||
@ -22,6 +20,7 @@ from homeassistant.const import (
|
|||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue
|
||||||
from homeassistant.helpers.typing import ConfigType
|
from homeassistant.helpers.typing import ConfigType
|
||||||
|
|
||||||
from .const import (
|
from .const import (
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
"domain": "android_ip_webcam",
|
"domain": "android_ip_webcam",
|
||||||
"name": "Android IP Webcam",
|
"name": "Android IP Webcam",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"dependencies": ["repairs"],
|
|
||||||
"documentation": "https://www.home-assistant.io/integrations/android_ip_webcam",
|
"documentation": "https://www.home-assistant.io/integrations/android_ip_webcam",
|
||||||
"requirements": ["pydroid-ipcam==2.0.0"],
|
"requirements": ["pydroid-ipcam==2.0.0"],
|
||||||
"codeowners": ["@engrbm87"],
|
"codeowners": ["@engrbm87"],
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
"name": "Anthem A/V Receivers",
|
"name": "Anthem A/V Receivers",
|
||||||
"documentation": "https://www.home-assistant.io/integrations/anthemav",
|
"documentation": "https://www.home-assistant.io/integrations/anthemav",
|
||||||
"requirements": ["anthemav==1.4.1"],
|
"requirements": ["anthemav==1.4.1"],
|
||||||
"dependencies": ["repairs"],
|
|
||||||
"codeowners": ["@hyralex"],
|
"codeowners": ["@hyralex"],
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"iot_class": "local_push",
|
"iot_class": "local_push",
|
||||||
|
@ -13,7 +13,6 @@ from homeassistant.components.media_player import (
|
|||||||
MediaPlayerEntity,
|
MediaPlayerEntity,
|
||||||
MediaPlayerEntityFeature,
|
MediaPlayerEntityFeature,
|
||||||
)
|
)
|
||||||
from homeassistant.components.repairs import IssueSeverity, async_create_issue
|
|
||||||
from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry
|
from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
CONF_HOST,
|
CONF_HOST,
|
||||||
@ -28,6 +27,7 @@ import homeassistant.helpers.config_validation as cv
|
|||||||
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
||||||
from homeassistant.helpers.entity import DeviceInfo
|
from homeassistant.helpers.entity import DeviceInfo
|
||||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||||
|
from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue
|
||||||
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
||||||
|
|
||||||
from .const import (
|
from .const import (
|
||||||
|
@ -11,7 +11,6 @@ from homeassistant.components.recorder.statistics import (
|
|||||||
async_add_external_statistics,
|
async_add_external_statistics,
|
||||||
get_last_statistics,
|
get_last_statistics,
|
||||||
)
|
)
|
||||||
from homeassistant.components.repairs import IssueSeverity, async_create_issue
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
ATTR_ENTITY_ID,
|
ATTR_ENTITY_ID,
|
||||||
@ -21,6 +20,7 @@ from homeassistant.const import (
|
|||||||
import homeassistant.core as ha
|
import homeassistant.core as ha
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.helpers.discovery import async_load_platform
|
from homeassistant.helpers.discovery import async_load_platform
|
||||||
|
from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue
|
||||||
from homeassistant.helpers.typing import ConfigType
|
from homeassistant.helpers.typing import ConfigType
|
||||||
import homeassistant.util.dt as dt_util
|
import homeassistant.util.dt as dt_util
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"name": "Demo",
|
"name": "Demo",
|
||||||
"documentation": "https://www.home-assistant.io/integrations/demo",
|
"documentation": "https://www.home-assistant.io/integrations/demo",
|
||||||
"after_dependencies": ["recorder"],
|
"after_dependencies": ["recorder"],
|
||||||
"dependencies": ["conversation", "group", "repairs", "zone"],
|
"dependencies": ["conversation", "group", "zone"],
|
||||||
"codeowners": ["@home-assistant/core"],
|
"codeowners": ["@home-assistant/core"],
|
||||||
"quality_scale": "internal",
|
"quality_scale": "internal",
|
||||||
"iot_class": "calculated"
|
"iot_class": "calculated"
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
"name": "Deutsche Bahn",
|
"name": "Deutsche Bahn",
|
||||||
"documentation": "https://www.home-assistant.io/integrations/deutsche_bahn",
|
"documentation": "https://www.home-assistant.io/integrations/deutsche_bahn",
|
||||||
"requirements": ["schiene==0.23"],
|
"requirements": ["schiene==0.23"],
|
||||||
"dependencies": ["repairs"],
|
|
||||||
"codeowners": [],
|
"codeowners": [],
|
||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
"loggers": ["schiene"]
|
"loggers": ["schiene"]
|
||||||
|
@ -7,12 +7,12 @@ import logging
|
|||||||
import schiene
|
import schiene
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.repairs import IssueSeverity, create_issue
|
|
||||||
from homeassistant.components.sensor import PLATFORM_SCHEMA, SensorEntity
|
from homeassistant.components.sensor import PLATFORM_SCHEMA, SensorEntity
|
||||||
from homeassistant.const import CONF_OFFSET
|
from homeassistant.const import CONF_OFFSET
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||||
|
from homeassistant.helpers.issue_registry import IssueSeverity, create_issue
|
||||||
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
||||||
import homeassistant.util.dt as dt_util
|
import homeassistant.util.dt as dt_util
|
||||||
|
|
||||||
|
@ -9,11 +9,11 @@ from typing import Any
|
|||||||
from pyflunearyou import Client
|
from pyflunearyou import Client
|
||||||
from pyflunearyou.errors import FluNearYouError
|
from pyflunearyou.errors import FluNearYouError
|
||||||
|
|
||||||
from homeassistant.components.repairs import IssueSeverity, async_create_issue
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import CONF_LATITUDE, CONF_LONGITUDE, Platform
|
from homeassistant.const import CONF_LATITUDE, CONF_LONGITUDE, Platform
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.helpers import aiohttp_client, config_validation as cv
|
from homeassistant.helpers import aiohttp_client, config_validation as cv
|
||||||
|
from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue
|
||||||
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed
|
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed
|
||||||
|
|
||||||
from .const import CATEGORY_CDC_REPORT, CATEGORY_USER_REPORT, DOMAIN, LOGGER
|
from .const import CATEGORY_CDC_REPORT, CATEGORY_USER_REPORT, DOMAIN, LOGGER
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
"name": "Flu Near You",
|
"name": "Flu Near You",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/flunearyou",
|
"documentation": "https://www.home-assistant.io/integrations/flunearyou",
|
||||||
"dependencies": ["repairs"],
|
|
||||||
"requirements": ["pyflunearyou==2.0.2"],
|
"requirements": ["pyflunearyou==2.0.2"],
|
||||||
"codeowners": ["@bachya"],
|
"codeowners": ["@bachya"],
|
||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
|
@ -20,7 +20,6 @@ from homeassistant.components.application_credentials import (
|
|||||||
ClientCredential,
|
ClientCredential,
|
||||||
async_import_client_credential,
|
async_import_client_credential,
|
||||||
)
|
)
|
||||||
from homeassistant.components.repairs import IssueSeverity, async_create_issue
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
CONF_CLIENT_ID,
|
CONF_CLIENT_ID,
|
||||||
@ -41,6 +40,7 @@ from homeassistant.helpers import config_entry_oauth2_flow
|
|||||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.helpers.entity import generate_entity_id
|
from homeassistant.helpers.entity import generate_entity_id
|
||||||
|
from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue
|
||||||
from homeassistant.helpers.typing import ConfigType
|
from homeassistant.helpers.typing import ConfigType
|
||||||
|
|
||||||
from .api import ApiAuthImpl, get_feature_access
|
from .api import ApiAuthImpl, get_feature_access
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"domain": "google",
|
"domain": "google",
|
||||||
"name": "Google Calendars",
|
"name": "Google Calendars",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"dependencies": ["application_credentials", "repairs"],
|
"dependencies": ["application_credentials"],
|
||||||
"documentation": "https://www.home-assistant.io/integrations/calendar.google/",
|
"documentation": "https://www.home-assistant.io/integrations/calendar.google/",
|
||||||
"requirements": ["gcal-sync==0.10.0", "oauth2client==4.1.3"],
|
"requirements": ["gcal-sync==0.10.0", "oauth2client==4.1.3"],
|
||||||
"codeowners": ["@allenporter"],
|
"codeowners": ["@allenporter"],
|
||||||
|
@ -10,7 +10,6 @@ from aioguardian import Client
|
|||||||
from aioguardian.errors import GuardianError
|
from aioguardian.errors import GuardianError
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.repairs import IssueSeverity, async_create_issue
|
|
||||||
from homeassistant.config_entries import ConfigEntry, ConfigEntryState
|
from homeassistant.config_entries import ConfigEntry, ConfigEntryState
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
ATTR_DEVICE_ID,
|
ATTR_DEVICE_ID,
|
||||||
@ -26,6 +25,7 @@ from homeassistant.exceptions import HomeAssistantError
|
|||||||
from homeassistant.helpers import config_validation as cv, device_registry as dr
|
from homeassistant.helpers import config_validation as cv, device_registry as dr
|
||||||
from homeassistant.helpers.dispatcher import async_dispatcher_send
|
from homeassistant.helpers.dispatcher import async_dispatcher_send
|
||||||
from homeassistant.helpers.entity import DeviceInfo, EntityDescription
|
from homeassistant.helpers.entity import DeviceInfo, EntityDescription
|
||||||
|
from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue
|
||||||
from homeassistant.helpers.update_coordinator import CoordinatorEntity
|
from homeassistant.helpers.update_coordinator import CoordinatorEntity
|
||||||
|
|
||||||
from .const import (
|
from .const import (
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
"name": "Elexa Guardian",
|
"name": "Elexa Guardian",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/guardian",
|
"documentation": "https://www.home-assistant.io/integrations/guardian",
|
||||||
"dependencies": ["repairs"],
|
|
||||||
"requirements": ["aioguardian==2022.07.0"],
|
"requirements": ["aioguardian==2022.07.0"],
|
||||||
"zeroconf": ["_api._udp.local."],
|
"zeroconf": ["_api._udp.local."],
|
||||||
"codeowners": ["@bachya"],
|
"codeowners": ["@bachya"],
|
||||||
|
@ -9,11 +9,14 @@ import logging
|
|||||||
import aiohttp
|
import aiohttp
|
||||||
from awesomeversion import AwesomeVersion, AwesomeVersionStrategy
|
from awesomeversion import AwesomeVersion, AwesomeVersionStrategy
|
||||||
|
|
||||||
from homeassistant.components.repairs import async_create_issue, async_delete_issue
|
|
||||||
from homeassistant.components.repairs.models import IssueSeverity
|
|
||||||
from homeassistant.const import __version__
|
from homeassistant.const import __version__
|
||||||
from homeassistant.core import HomeAssistant, callback
|
from homeassistant.core import HomeAssistant, callback
|
||||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||||
|
from homeassistant.helpers.issue_registry import (
|
||||||
|
IssueSeverity,
|
||||||
|
async_create_issue,
|
||||||
|
async_delete_issue,
|
||||||
|
)
|
||||||
from homeassistant.helpers.start import async_at_start
|
from homeassistant.helpers.start import async_at_start
|
||||||
from homeassistant.helpers.typing import ConfigType
|
from homeassistant.helpers.typing import ConfigType
|
||||||
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator
|
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator
|
||||||
|
@ -3,6 +3,5 @@
|
|||||||
"name": "Home Assistant Alerts",
|
"name": "Home Assistant Alerts",
|
||||||
"config_flow": false,
|
"config_flow": false,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/homeassistant_alerts",
|
"documentation": "https://www.home-assistant.io/integrations/homeassistant_alerts",
|
||||||
"codeowners": ["@home-assistant/core"],
|
"codeowners": ["@home-assistant/core"]
|
||||||
"dependencies": ["repairs"]
|
|
||||||
}
|
}
|
||||||
|
@ -2,12 +2,12 @@
|
|||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components import notify as hass_notify
|
from homeassistant.components import notify as hass_notify
|
||||||
from homeassistant.components.repairs import IssueSeverity, async_create_issue
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import CONF_CLIENT_ID, CONF_CLIENT_SECRET, CONF_NAME, Platform
|
from homeassistant.const import CONF_CLIENT_ID, CONF_CLIENT_SECRET, CONF_NAME, Platform
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.helpers import discovery
|
from homeassistant.helpers import discovery
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue
|
||||||
from homeassistant.helpers.typing import ConfigType
|
from homeassistant.helpers.typing import ConfigType
|
||||||
|
|
||||||
from .const import DOMAIN, PLATFORMS
|
from .const import DOMAIN, PLATFORMS
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
"requirements": ["demetriek==0.2.2"],
|
"requirements": ["demetriek==0.2.2"],
|
||||||
"codeowners": ["@robbiet480", "@frenck"],
|
"codeowners": ["@robbiet480", "@frenck"],
|
||||||
"iot_class": "local_polling",
|
"iot_class": "local_polling",
|
||||||
"dependencies": ["application_credentials", "repairs"],
|
"dependencies": ["application_credentials"],
|
||||||
"loggers": ["demetriek"],
|
"loggers": ["demetriek"],
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"ssdp": [
|
"ssdp": [
|
||||||
|
@ -12,7 +12,6 @@ from aiolyric.objects.device import LyricDevice
|
|||||||
from aiolyric.objects.location import LyricLocation
|
from aiolyric.objects.location import LyricLocation
|
||||||
import async_timeout
|
import async_timeout
|
||||||
|
|
||||||
from homeassistant.components.repairs import IssueSeverity, async_create_issue
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import Platform
|
from homeassistant.const import Platform
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
@ -24,6 +23,7 @@ from homeassistant.helpers import (
|
|||||||
device_registry as dr,
|
device_registry as dr,
|
||||||
)
|
)
|
||||||
from homeassistant.helpers.entity import DeviceInfo
|
from homeassistant.helpers.entity import DeviceInfo
|
||||||
|
from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue
|
||||||
from homeassistant.helpers.typing import ConfigType
|
from homeassistant.helpers.typing import ConfigType
|
||||||
from homeassistant.helpers.update_coordinator import (
|
from homeassistant.helpers.update_coordinator import (
|
||||||
CoordinatorEntity,
|
CoordinatorEntity,
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"name": "Honeywell Lyric",
|
"name": "Honeywell Lyric",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/lyric",
|
"documentation": "https://www.home-assistant.io/integrations/lyric",
|
||||||
"dependencies": ["application_credentials", "repairs"],
|
"dependencies": ["application_credentials"],
|
||||||
"requirements": ["aiolyric==1.0.8"],
|
"requirements": ["aiolyric==1.0.8"],
|
||||||
"codeowners": ["@timmo001"],
|
"codeowners": ["@timmo001"],
|
||||||
"quality_scale": "silver",
|
"quality_scale": "silver",
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
"name": "Mi Flora",
|
"name": "Mi Flora",
|
||||||
"documentation": "https://www.home-assistant.io/integrations/miflora",
|
"documentation": "https://www.home-assistant.io/integrations/miflora",
|
||||||
"requirements": [],
|
"requirements": [],
|
||||||
"dependencies": ["repairs"],
|
|
||||||
"codeowners": ["@danielhiversen", "@basnijholt"],
|
"codeowners": ["@danielhiversen", "@basnijholt"],
|
||||||
"iot_class": "local_polling"
|
"iot_class": "local_polling"
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
"""Support for Xiaomi Mi Flora BLE plant sensor."""
|
"""Support for Xiaomi Mi Flora BLE plant sensor."""
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from homeassistant.components.repairs import IssueSeverity, async_create_issue
|
|
||||||
from homeassistant.components.sensor import PLATFORM_SCHEMA_BASE
|
from homeassistant.components.sensor import PLATFORM_SCHEMA_BASE
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||||
|
from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue
|
||||||
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
||||||
|
|
||||||
PLATFORM_SCHEMA = PLATFORM_SCHEMA_BASE
|
PLATFORM_SCHEMA = PLATFORM_SCHEMA_BASE
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
"name": "Xiaomi Mijia BLE Temperature and Humidity Sensor",
|
"name": "Xiaomi Mijia BLE Temperature and Humidity Sensor",
|
||||||
"documentation": "https://www.home-assistant.io/integrations/mitemp_bt",
|
"documentation": "https://www.home-assistant.io/integrations/mitemp_bt",
|
||||||
"requirements": [],
|
"requirements": [],
|
||||||
"dependencies": ["repairs"],
|
|
||||||
"codeowners": [],
|
"codeowners": [],
|
||||||
"iot_class": "local_polling"
|
"iot_class": "local_polling"
|
||||||
}
|
}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
"""Support for Xiaomi Mi Temp BLE environmental sensor."""
|
"""Support for Xiaomi Mi Temp BLE environmental sensor."""
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from homeassistant.components.repairs import IssueSeverity, async_create_issue
|
|
||||||
from homeassistant.components.sensor import PLATFORM_SCHEMA_BASE
|
from homeassistant.components.sensor import PLATFORM_SCHEMA_BASE
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||||
|
from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue
|
||||||
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
||||||
|
|
||||||
PLATFORM_SCHEMA = PLATFORM_SCHEMA_BASE
|
PLATFORM_SCHEMA = PLATFORM_SCHEMA_BASE
|
||||||
|
@ -29,11 +29,6 @@ from homeassistant.components.application_credentials import (
|
|||||||
from homeassistant.components.camera import Image, img_util
|
from homeassistant.components.camera import Image, img_util
|
||||||
from homeassistant.components.http.const import KEY_HASS_USER
|
from homeassistant.components.http.const import KEY_HASS_USER
|
||||||
from homeassistant.components.http.view import HomeAssistantView
|
from homeassistant.components.http.view import HomeAssistantView
|
||||||
from homeassistant.components.repairs import (
|
|
||||||
IssueSeverity,
|
|
||||||
async_create_issue,
|
|
||||||
async_delete_issue,
|
|
||||||
)
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
CONF_BINARY_SENSORS,
|
CONF_BINARY_SENSORS,
|
||||||
@ -57,6 +52,11 @@ from homeassistant.helpers import (
|
|||||||
entity_registry as er,
|
entity_registry as er,
|
||||||
)
|
)
|
||||||
from homeassistant.helpers.entity_registry import async_entries_for_device
|
from homeassistant.helpers.entity_registry import async_entries_for_device
|
||||||
|
from homeassistant.helpers.issue_registry import (
|
||||||
|
IssueSeverity,
|
||||||
|
async_create_issue,
|
||||||
|
async_delete_issue,
|
||||||
|
)
|
||||||
from homeassistant.helpers.typing import ConfigType
|
from homeassistant.helpers.typing import ConfigType
|
||||||
|
|
||||||
from . import api, config_flow
|
from . import api, config_flow
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"domain": "nest",
|
"domain": "nest",
|
||||||
"name": "Nest",
|
"name": "Nest",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"dependencies": ["ffmpeg", "http", "application_credentials", "repairs"],
|
"dependencies": ["ffmpeg", "http", "application_credentials"],
|
||||||
"after_dependencies": ["media_source"],
|
"after_dependencies": ["media_source"],
|
||||||
"documentation": "https://www.home-assistant.io/integrations/nest",
|
"documentation": "https://www.home-assistant.io/integrations/nest",
|
||||||
"requirements": ["python-nest==4.2.0", "google-nest-sdm==2.0.0"],
|
"requirements": ["python-nest==4.2.0", "google-nest-sdm==2.0.0"],
|
||||||
|
@ -14,7 +14,6 @@ from homeassistant.components.image_processing import (
|
|||||||
PLATFORM_SCHEMA,
|
PLATFORM_SCHEMA,
|
||||||
ImageProcessingEntity,
|
ImageProcessingEntity,
|
||||||
)
|
)
|
||||||
from homeassistant.components.repairs import IssueSeverity, create_issue
|
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
ATTR_ENTITY_ID,
|
ATTR_ENTITY_ID,
|
||||||
CONF_ENTITY_ID,
|
CONF_ENTITY_ID,
|
||||||
@ -25,6 +24,7 @@ from homeassistant.const import (
|
|||||||
from homeassistant.core import HomeAssistant, callback, split_entity_id
|
from homeassistant.core import HomeAssistant, callback, split_entity_id
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||||
|
from homeassistant.helpers.issue_registry import IssueSeverity, create_issue
|
||||||
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
||||||
from homeassistant.util.async_ import run_callback_threadsafe
|
from homeassistant.util.async_ import run_callback_threadsafe
|
||||||
|
|
||||||
|
@ -3,6 +3,5 @@
|
|||||||
"name": "OpenALPR Local",
|
"name": "OpenALPR Local",
|
||||||
"documentation": "https://www.home-assistant.io/integrations/openalpr_local",
|
"documentation": "https://www.home-assistant.io/integrations/openalpr_local",
|
||||||
"codeowners": [],
|
"codeowners": [],
|
||||||
"dependencies": ["repairs"],
|
|
||||||
"iot_class": "local_push"
|
"iot_class": "local_push"
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
"name": "Open Exchange Rates",
|
"name": "Open Exchange Rates",
|
||||||
"documentation": "https://www.home-assistant.io/integrations/openexchangerates",
|
"documentation": "https://www.home-assistant.io/integrations/openexchangerates",
|
||||||
"requirements": ["aioopenexchangerates==0.4.0"],
|
"requirements": ["aioopenexchangerates==0.4.0"],
|
||||||
"dependencies": ["repairs"],
|
|
||||||
"codeowners": ["@MartinHjelmare"],
|
"codeowners": ["@MartinHjelmare"],
|
||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
"config_flow": true
|
"config_flow": true
|
||||||
|
@ -3,8 +3,6 @@ from __future__ import annotations
|
|||||||
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.repairs.issue_handler import async_create_issue
|
|
||||||
from homeassistant.components.repairs.models import IssueSeverity
|
|
||||||
from homeassistant.components.sensor import PLATFORM_SCHEMA, SensorEntity
|
from homeassistant.components.sensor import PLATFORM_SCHEMA, SensorEntity
|
||||||
from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry
|
from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry
|
||||||
from homeassistant.const import CONF_API_KEY, CONF_BASE, CONF_NAME, CONF_QUOTE
|
from homeassistant.const import CONF_API_KEY, CONF_BASE, CONF_NAME, CONF_QUOTE
|
||||||
@ -13,6 +11,7 @@ import homeassistant.helpers.config_validation as cv
|
|||||||
from homeassistant.helpers.device_registry import DeviceEntryType
|
from homeassistant.helpers.device_registry import DeviceEntryType
|
||||||
from homeassistant.helpers.entity import DeviceInfo
|
from homeassistant.helpers.entity import DeviceInfo
|
||||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||||
|
from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue
|
||||||
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
||||||
from homeassistant.helpers.update_coordinator import CoordinatorEntity
|
from homeassistant.helpers.update_coordinator import CoordinatorEntity
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
"domain": "pushover",
|
"domain": "pushover",
|
||||||
"name": "Pushover",
|
"name": "Pushover",
|
||||||
"dependencies": ["repairs"],
|
|
||||||
"documentation": "https://www.home-assistant.io/integrations/pushover",
|
"documentation": "https://www.home-assistant.io/integrations/pushover",
|
||||||
"requirements": ["pushover_complete==1.1.1"],
|
"requirements": ["pushover_complete==1.1.1"],
|
||||||
"codeowners": ["@engrbm87"],
|
"codeowners": ["@engrbm87"],
|
||||||
|
@ -15,12 +15,11 @@ from homeassistant.components.notify import (
|
|||||||
PLATFORM_SCHEMA,
|
PLATFORM_SCHEMA,
|
||||||
BaseNotificationService,
|
BaseNotificationService,
|
||||||
)
|
)
|
||||||
from homeassistant.components.repairs.issue_handler import async_create_issue
|
|
||||||
from homeassistant.components.repairs.models import IssueSeverity
|
|
||||||
from homeassistant.config_entries import SOURCE_IMPORT
|
from homeassistant.config_entries import SOURCE_IMPORT
|
||||||
from homeassistant.const import CONF_API_KEY
|
from homeassistant.const import CONF_API_KEY
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue
|
||||||
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
||||||
|
|
||||||
from ...exceptions import HomeAssistantError
|
from ...exceptions import HomeAssistantError
|
||||||
|
@ -18,7 +18,6 @@ from homeassistant.components.climate.const import (
|
|||||||
HVACAction,
|
HVACAction,
|
||||||
HVACMode,
|
HVACMode,
|
||||||
)
|
)
|
||||||
from homeassistant.components.repairs import IssueSeverity, async_create_issue
|
|
||||||
from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry
|
from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
ATTR_TEMPERATURE,
|
ATTR_TEMPERATURE,
|
||||||
@ -29,6 +28,7 @@ from homeassistant.const import (
|
|||||||
from homeassistant.core import HomeAssistant, callback
|
from homeassistant.core import HomeAssistant, callback
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||||
|
from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue
|
||||||
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
||||||
|
|
||||||
from . import DOMAIN
|
from . import DOMAIN
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
"name": "Radio Thermostat",
|
"name": "Radio Thermostat",
|
||||||
"documentation": "https://www.home-assistant.io/integrations/radiotherm",
|
"documentation": "https://www.home-assistant.io/integrations/radiotherm",
|
||||||
"requirements": ["radiotherm==2.1.0"],
|
"requirements": ["radiotherm==2.1.0"],
|
||||||
"dependencies": ["repairs"],
|
|
||||||
"codeowners": ["@bdraco", "@vinnyfuria"],
|
"codeowners": ["@bdraco", "@vinnyfuria"],
|
||||||
"iot_class": "local_polling",
|
"iot_class": "local_polling",
|
||||||
"loggers": ["radiotherm"],
|
"loggers": ["radiotherm"],
|
||||||
|
@ -2,13 +2,6 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.helpers.issue_registry import (
|
|
||||||
IssueSeverity,
|
|
||||||
async_create_issue,
|
|
||||||
async_delete_issue,
|
|
||||||
create_issue,
|
|
||||||
delete_issue,
|
|
||||||
)
|
|
||||||
from homeassistant.helpers.typing import ConfigType
|
from homeassistant.helpers.typing import ConfigType
|
||||||
|
|
||||||
from . import issue_handler, websocket_api
|
from . import issue_handler, websocket_api
|
||||||
@ -17,13 +10,8 @@ from .issue_handler import ConfirmRepairFlow
|
|||||||
from .models import RepairsFlow
|
from .models import RepairsFlow
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
"async_create_issue",
|
|
||||||
"async_delete_issue",
|
|
||||||
"create_issue",
|
|
||||||
"delete_issue",
|
|
||||||
"DOMAIN",
|
"DOMAIN",
|
||||||
"ConfirmRepairFlow",
|
"ConfirmRepairFlow",
|
||||||
"IssueSeverity",
|
|
||||||
"RepairsFlow",
|
"RepairsFlow",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -7,7 +7,6 @@ import logging
|
|||||||
from aiosenz import SENZAPI, Thermostat
|
from aiosenz import SENZAPI, Thermostat
|
||||||
from httpx import RequestError
|
from httpx import RequestError
|
||||||
|
|
||||||
from homeassistant.components.repairs import IssueSeverity, async_create_issue
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import Platform
|
from homeassistant.const import Platform
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
@ -17,6 +16,7 @@ from homeassistant.helpers import (
|
|||||||
config_validation as cv,
|
config_validation as cv,
|
||||||
httpx_client,
|
httpx_client,
|
||||||
)
|
)
|
||||||
|
from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue
|
||||||
from homeassistant.helpers.typing import ConfigType
|
from homeassistant.helpers.typing import ConfigType
|
||||||
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed
|
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/senz",
|
"documentation": "https://www.home-assistant.io/integrations/senz",
|
||||||
"requirements": ["aiosenz==1.0.0"],
|
"requirements": ["aiosenz==1.0.0"],
|
||||||
"dependencies": ["application_credentials", "repairs"],
|
"dependencies": ["application_credentials"],
|
||||||
"codeowners": ["@milanmeu"],
|
"codeowners": ["@milanmeu"],
|
||||||
"iot_class": "cloud_polling"
|
"iot_class": "cloud_polling"
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
"requirements": ["simplepush==1.1.4"],
|
"requirements": ["simplepush==1.1.4"],
|
||||||
"codeowners": ["@engrbm87"],
|
"codeowners": ["@engrbm87"],
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"dependencies": ["repairs"],
|
|
||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
"loggers": ["simplepush"]
|
"loggers": ["simplepush"]
|
||||||
}
|
}
|
||||||
|
@ -13,10 +13,9 @@ from homeassistant.components.notify import (
|
|||||||
BaseNotificationService,
|
BaseNotificationService,
|
||||||
)
|
)
|
||||||
from homeassistant.components.notify.const import ATTR_DATA
|
from homeassistant.components.notify.const import ATTR_DATA
|
||||||
from homeassistant.components.repairs.issue_handler import async_create_issue
|
|
||||||
from homeassistant.components.repairs.models import IssueSeverity
|
|
||||||
from homeassistant.const import CONF_EVENT, CONF_PASSWORD
|
from homeassistant.const import CONF_EVENT, CONF_PASSWORD
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue
|
||||||
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
||||||
|
|
||||||
from .const import ATTR_EVENT, CONF_DEVICE_KEY, CONF_SALT, DOMAIN
|
from .const import ATTR_EVENT, CONF_DEVICE_KEY, CONF_SALT, DOMAIN
|
||||||
|
@ -6,13 +6,12 @@ import asyncio
|
|||||||
from aioskybell import Skybell
|
from aioskybell import Skybell
|
||||||
from aioskybell.exceptions import SkybellAuthenticationException, SkybellException
|
from aioskybell.exceptions import SkybellAuthenticationException, SkybellException
|
||||||
|
|
||||||
from homeassistant.components.repairs.issue_handler import async_create_issue
|
|
||||||
from homeassistant.components.repairs.models import IssueSeverity
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import CONF_EMAIL, CONF_PASSWORD, Platform
|
from homeassistant.const import CONF_EMAIL, CONF_PASSWORD, Platform
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.exceptions import ConfigEntryAuthFailed, ConfigEntryNotReady
|
from homeassistant.exceptions import ConfigEntryAuthFailed, ConfigEntryNotReady
|
||||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||||
|
from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue
|
||||||
from homeassistant.helpers.typing import ConfigType
|
from homeassistant.helpers.typing import ConfigType
|
||||||
|
|
||||||
from .const import DOMAIN
|
from .const import DOMAIN
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/skybell",
|
"documentation": "https://www.home-assistant.io/integrations/skybell",
|
||||||
"requirements": ["aioskybell==22.7.0"],
|
"requirements": ["aioskybell==22.7.0"],
|
||||||
"dependencies": ["ffmpeg", "repairs"],
|
"dependencies": ["ffmpeg"],
|
||||||
"codeowners": ["@tkdrob"],
|
"codeowners": ["@tkdrob"],
|
||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
"loggers": ["aioskybell"]
|
"loggers": ["aioskybell"]
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
"documentation": "https://www.home-assistant.io/integrations/soundtouch",
|
"documentation": "https://www.home-assistant.io/integrations/soundtouch",
|
||||||
"requirements": ["libsoundtouch==0.8"],
|
"requirements": ["libsoundtouch==0.8"],
|
||||||
"zeroconf": ["_soundtouch._tcp.local."],
|
"zeroconf": ["_soundtouch._tcp.local."],
|
||||||
"dependencies": ["repairs"],
|
|
||||||
"codeowners": ["@kroimon"],
|
"codeowners": ["@kroimon"],
|
||||||
"iot_class": "local_polling",
|
"iot_class": "local_polling",
|
||||||
"loggers": ["libsoundtouch"],
|
"loggers": ["libsoundtouch"],
|
||||||
|
@ -19,7 +19,6 @@ from homeassistant.components.media_player import (
|
|||||||
from homeassistant.components.media_player.browse_media import (
|
from homeassistant.components.media_player.browse_media import (
|
||||||
async_process_play_media_url,
|
async_process_play_media_url,
|
||||||
)
|
)
|
||||||
from homeassistant.components.repairs import IssueSeverity, async_create_issue
|
|
||||||
from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry
|
from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
CONF_HOST,
|
CONF_HOST,
|
||||||
@ -37,6 +36,7 @@ import homeassistant.helpers.config_validation as cv
|
|||||||
from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC, format_mac
|
from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC, format_mac
|
||||||
from homeassistant.helpers.entity import DeviceInfo
|
from homeassistant.helpers.entity import DeviceInfo
|
||||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||||
|
from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue
|
||||||
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
||||||
|
|
||||||
from .const import DOMAIN
|
from .const import DOMAIN
|
||||||
|
@ -9,7 +9,6 @@ import aiohttp
|
|||||||
import requests
|
import requests
|
||||||
from spotipy import Spotify, SpotifyException
|
from spotipy import Spotify, SpotifyException
|
||||||
|
|
||||||
from homeassistant.components.repairs import IssueSeverity, async_create_issue
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import Platform
|
from homeassistant.const import Platform
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
@ -19,6 +18,7 @@ from homeassistant.helpers.config_entry_oauth2_flow import (
|
|||||||
OAuth2Session,
|
OAuth2Session,
|
||||||
async_get_config_entry_implementation,
|
async_get_config_entry_implementation,
|
||||||
)
|
)
|
||||||
|
from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue
|
||||||
from homeassistant.helpers.typing import ConfigType
|
from homeassistant.helpers.typing import ConfigType
|
||||||
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed
|
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"documentation": "https://www.home-assistant.io/integrations/spotify",
|
"documentation": "https://www.home-assistant.io/integrations/spotify",
|
||||||
"requirements": ["spotipy==2.20.0"],
|
"requirements": ["spotipy==2.20.0"],
|
||||||
"zeroconf": ["_spotify-connect._tcp.local."],
|
"zeroconf": ["_spotify-connect._tcp.local."],
|
||||||
"dependencies": ["application_credentials", "repairs"],
|
"dependencies": ["application_credentials"],
|
||||||
"codeowners": ["@frenck"],
|
"codeowners": ["@frenck"],
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"quality_scale": "silver",
|
"quality_scale": "silver",
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
"""The Steam integration."""
|
"""The Steam integration."""
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from homeassistant.components.repairs import IssueSeverity, async_create_issue
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import Platform
|
from homeassistant.const import Platform
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.helpers.device_registry import DeviceEntryType
|
from homeassistant.helpers.device_registry import DeviceEntryType
|
||||||
from homeassistant.helpers.entity import DeviceInfo
|
from homeassistant.helpers.entity import DeviceInfo
|
||||||
|
from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue
|
||||||
from homeassistant.helpers.typing import ConfigType
|
from homeassistant.helpers.typing import ConfigType
|
||||||
from homeassistant.helpers.update_coordinator import CoordinatorEntity
|
from homeassistant.helpers.update_coordinator import CoordinatorEntity
|
||||||
|
|
||||||
|
@ -4,7 +4,6 @@
|
|||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/steam_online",
|
"documentation": "https://www.home-assistant.io/integrations/steam_online",
|
||||||
"requirements": ["steamodd==4.21"],
|
"requirements": ["steamodd==4.21"],
|
||||||
"dependencies": ["repairs"],
|
|
||||||
"codeowners": ["@tkdrob"],
|
"codeowners": ["@tkdrob"],
|
||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
"loggers": ["steam"]
|
"loggers": ["steam"]
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
"name": "U.S. Citizenship and Immigration Services (USCIS)",
|
"name": "U.S. Citizenship and Immigration Services (USCIS)",
|
||||||
"documentation": "https://www.home-assistant.io/integrations/uscis",
|
"documentation": "https://www.home-assistant.io/integrations/uscis",
|
||||||
"requirements": ["uscisstatus==0.1.1"],
|
"requirements": ["uscisstatus==0.1.1"],
|
||||||
"dependencies": ["repairs"],
|
|
||||||
"codeowners": [],
|
"codeowners": [],
|
||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
"loggers": ["uscisstatus"]
|
"loggers": ["uscisstatus"]
|
||||||
|
@ -7,12 +7,12 @@ import logging
|
|||||||
import uscisstatus
|
import uscisstatus
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.repairs import IssueSeverity, create_issue
|
|
||||||
from homeassistant.components.sensor import PLATFORM_SCHEMA, SensorEntity
|
from homeassistant.components.sensor import PLATFORM_SCHEMA, SensorEntity
|
||||||
from homeassistant.const import CONF_NAME
|
from homeassistant.const import CONF_NAME
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.helpers import config_validation as cv
|
from homeassistant.helpers import config_validation as cv
|
||||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||||
|
from homeassistant.helpers.issue_registry import IssueSeverity, create_issue
|
||||||
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
|
||||||
from homeassistant.util import Throttle
|
from homeassistant.util import Throttle
|
||||||
|
|
||||||
|
@ -8,7 +8,6 @@ import voluptuous as vol
|
|||||||
from volvooncall import Connection
|
from volvooncall import Connection
|
||||||
from volvooncall.dashboard import Instrument
|
from volvooncall.dashboard import Instrument
|
||||||
|
|
||||||
from homeassistant.components.repairs import IssueSeverity, async_create_issue
|
|
||||||
from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry
|
from homeassistant.config_entries import SOURCE_IMPORT, ConfigEntry
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
CONF_NAME,
|
CONF_NAME,
|
||||||
@ -23,6 +22,7 @@ from homeassistant.exceptions import ConfigEntryAuthFailed
|
|||||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
from homeassistant.helpers.dispatcher import async_dispatcher_send
|
from homeassistant.helpers.dispatcher import async_dispatcher_send
|
||||||
|
from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue
|
||||||
from homeassistant.helpers.typing import ConfigType
|
from homeassistant.helpers.typing import ConfigType
|
||||||
from homeassistant.helpers.update_coordinator import (
|
from homeassistant.helpers.update_coordinator import (
|
||||||
CoordinatorEntity,
|
CoordinatorEntity,
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
"name": "Volvo On Call",
|
"name": "Volvo On Call",
|
||||||
"documentation": "https://www.home-assistant.io/integrations/volvooncall",
|
"documentation": "https://www.home-assistant.io/integrations/volvooncall",
|
||||||
"requirements": ["volvooncall==0.10.0"],
|
"requirements": ["volvooncall==0.10.0"],
|
||||||
"dependencies": ["repairs"],
|
|
||||||
"codeowners": ["@molobrakos"],
|
"codeowners": ["@molobrakos"],
|
||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
"loggers": ["geopy", "hbmqtt", "volvooncall"],
|
"loggers": ["geopy", "hbmqtt", "volvooncall"],
|
||||||
|
@ -21,7 +21,6 @@ from xbox.webapi.api.provider.smartglass.models import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
from homeassistant.components import application_credentials
|
from homeassistant.components import application_credentials
|
||||||
from homeassistant.components.repairs import IssueSeverity, async_create_issue
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import CONF_CLIENT_ID, CONF_CLIENT_SECRET, Platform
|
from homeassistant.const import CONF_CLIENT_ID, CONF_CLIENT_SECRET, Platform
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
@ -30,6 +29,7 @@ from homeassistant.helpers import (
|
|||||||
config_entry_oauth2_flow,
|
config_entry_oauth2_flow,
|
||||||
config_validation as cv,
|
config_validation as cv,
|
||||||
)
|
)
|
||||||
|
from homeassistant.helpers.issue_registry import IssueSeverity, async_create_issue
|
||||||
from homeassistant.helpers.typing import ConfigType
|
from homeassistant.helpers.typing import ConfigType
|
||||||
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator
|
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/xbox",
|
"documentation": "https://www.home-assistant.io/integrations/xbox",
|
||||||
"requirements": ["xbox-webapi==2.0.11"],
|
"requirements": ["xbox-webapi==2.0.11"],
|
||||||
"dependencies": ["auth", "application_credentials", "repairs"],
|
"dependencies": ["auth", "application_credentials"],
|
||||||
"codeowners": ["@hunterjm"],
|
"codeowners": ["@hunterjm"],
|
||||||
"iot_class": "cloud_polling"
|
"iot_class": "cloud_polling"
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,7 @@ import pytest
|
|||||||
from homeassistant.components.demo import DOMAIN
|
from homeassistant.components.demo import DOMAIN
|
||||||
from homeassistant.components.recorder import get_instance
|
from homeassistant.components.recorder import get_instance
|
||||||
from homeassistant.components.recorder.statistics import list_statistic_ids
|
from homeassistant.components.recorder.statistics import list_statistic_ids
|
||||||
|
from homeassistant.components.repairs import DOMAIN as REPAIRS_DOMAIN
|
||||||
from homeassistant.helpers.json import JSONEncoder
|
from homeassistant.helpers.json import JSONEncoder
|
||||||
from homeassistant.setup import async_setup_component
|
from homeassistant.setup import async_setup_component
|
||||||
|
|
||||||
@ -74,6 +75,7 @@ async def test_demo_statistics(hass, recorder_mock):
|
|||||||
|
|
||||||
async def test_issues_created(hass, hass_client, hass_ws_client):
|
async def test_issues_created(hass, hass_client, hass_ws_client):
|
||||||
"""Test issues are created and can be fixed."""
|
"""Test issues are created and can be fixed."""
|
||||||
|
assert await async_setup_component(hass, REPAIRS_DOMAIN, {REPAIRS_DOMAIN: {}})
|
||||||
assert await async_setup_component(hass, DOMAIN, {DOMAIN: {}})
|
assert await async_setup_component(hass, DOMAIN, {DOMAIN: {}})
|
||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
await hass.async_start()
|
await hass.async_start()
|
||||||
|
@ -8,6 +8,7 @@ from unittest.mock import ANY, patch
|
|||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from homeassistant.components.homeassistant_alerts import DOMAIN, UPDATE_INTERVAL
|
from homeassistant.components.homeassistant_alerts import DOMAIN, UPDATE_INTERVAL
|
||||||
|
from homeassistant.components.repairs import DOMAIN as REPAIRS_DOMAIN
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.setup import async_setup_component
|
from homeassistant.setup import async_setup_component
|
||||||
from homeassistant.util import dt as dt_util
|
from homeassistant.util import dt as dt_util
|
||||||
@ -28,6 +29,12 @@ Content for {filename}
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@pytest.fixture(autouse=True)
|
||||||
|
async def setup_repairs(hass):
|
||||||
|
"""Set up the repairs integration."""
|
||||||
|
assert await async_setup_component(hass, REPAIRS_DOMAIN, {REPAIRS_DOMAIN: {}})
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
"ha_version, expected_alerts",
|
"ha_version, expected_alerts",
|
||||||
(
|
(
|
||||||
|
@ -6,19 +6,20 @@ from aiohttp import ClientWebSocketResponse
|
|||||||
from freezegun import freeze_time
|
from freezegun import freeze_time
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
from homeassistant.components.repairs import (
|
|
||||||
async_create_issue,
|
|
||||||
async_delete_issue,
|
|
||||||
create_issue,
|
|
||||||
delete_issue,
|
|
||||||
)
|
|
||||||
from homeassistant.components.repairs.const import DOMAIN
|
from homeassistant.components.repairs.const import DOMAIN
|
||||||
from homeassistant.components.repairs.issue_handler import (
|
from homeassistant.components.repairs.issue_handler import (
|
||||||
async_process_repairs_platforms,
|
async_process_repairs_platforms,
|
||||||
)
|
)
|
||||||
from homeassistant.const import __version__ as ha_version
|
from homeassistant.const import __version__ as ha_version
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
from homeassistant.helpers.issue_registry import IssueSeverity, async_ignore_issue
|
from homeassistant.helpers.issue_registry import (
|
||||||
|
IssueSeverity,
|
||||||
|
async_create_issue,
|
||||||
|
async_delete_issue,
|
||||||
|
async_ignore_issue,
|
||||||
|
create_issue,
|
||||||
|
delete_issue,
|
||||||
|
)
|
||||||
from homeassistant.setup import async_setup_component
|
from homeassistant.setup import async_setup_component
|
||||||
|
|
||||||
from tests.common import mock_platform
|
from tests.common import mock_platform
|
||||||
|
@ -9,7 +9,7 @@ import pytest
|
|||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant import data_entry_flow
|
from homeassistant import data_entry_flow
|
||||||
from homeassistant.components.repairs import RepairsFlow, async_create_issue
|
from homeassistant.components.repairs import RepairsFlow
|
||||||
from homeassistant.components.repairs.const import DOMAIN
|
from homeassistant.components.repairs.const import DOMAIN
|
||||||
from homeassistant.const import __version__ as ha_version
|
from homeassistant.const import __version__ as ha_version
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
@ -49,7 +49,7 @@ async def create_issues(hass, ws_client, issues=None):
|
|||||||
issues = DEFAULT_ISSUES
|
issues = DEFAULT_ISSUES
|
||||||
|
|
||||||
for issue in issues:
|
for issue in issues:
|
||||||
async_create_issue(
|
issue_registry.async_create_issue(
|
||||||
hass,
|
hass,
|
||||||
issue["domain"],
|
issue["domain"],
|
||||||
issue["issue_id"],
|
issue["issue_id"],
|
||||||
@ -463,7 +463,7 @@ async def test_list_issues(hass: HomeAssistant, hass_storage, hass_ws_client) ->
|
|||||||
]
|
]
|
||||||
|
|
||||||
for issue in issues:
|
for issue in issues:
|
||||||
async_create_issue(
|
issue_registry.async_create_issue(
|
||||||
hass,
|
hass,
|
||||||
issue["domain"],
|
issue["domain"],
|
||||||
issue["issue_id"],
|
issue["issue_id"],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user