Remove some unneeded pylint disables, update ref to util.process one (#49314)
parent
7f29d028a3
commit
3a0b0380c7
|
@ -17,7 +17,7 @@ from homeassistant.const import (
|
|||
)
|
||||
from homeassistant.core import callback
|
||||
|
||||
from .const import ( # pylint: disable=unused-import
|
||||
from .const import (
|
||||
ATTR_SERIAL,
|
||||
ATTR_TYPE_CAMERA,
|
||||
ATTR_TYPE_CLOUD,
|
||||
|
|
|
@ -7,7 +7,6 @@ import voluptuous as vol
|
|||
from homeassistant import config_entries, core
|
||||
from homeassistant.const import CONF_HOST, CONF_PORT
|
||||
|
||||
# pylint: disable=unused-import
|
||||
from .const import DEFAULT_PORT, DOMAIN
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
|
|
@ -19,8 +19,7 @@ from homeassistant.const import (
|
|||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||
import homeassistant.helpers.config_validation as cv
|
||||
|
||||
from .const import CONF_CUSTOM, CONF_GROUP, DEVICE_INFO, GROUPS
|
||||
from .const import DOMAIN # pylint: disable=unused-import
|
||||
from .const import CONF_CUSTOM, CONF_GROUP, DEVICE_INFO, DOMAIN, GROUPS
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
@ -112,7 +112,6 @@ class ZhaFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
|||
if self._async_current_entries():
|
||||
return self.async_abort(reason="single_instance_allowed")
|
||||
|
||||
# pylint: disable=no-member # https://github.com/PyCQA/pylint/issues/3167
|
||||
self.context["title_placeholders"] = {
|
||||
CONF_NAME: node_name,
|
||||
}
|
||||
|
@ -151,7 +150,6 @@ class ZhaFlowHandler(config_entries.ConfigFlow, domain=DOMAIN):
|
|||
if isinstance(radio_schema, vol.Schema):
|
||||
radio_schema = radio_schema.schema
|
||||
|
||||
# pylint: disable=no-member # https://github.com/PyCQA/pylint/issues/3167
|
||||
source = self.context.get("source")
|
||||
for param, value in radio_schema.items():
|
||||
if param in SUPPORTED_PORT_SETTINGS:
|
||||
|
|
|
@ -9,7 +9,7 @@ from typing import Any
|
|||
|
||||
|
||||
def kill_subprocess(
|
||||
# pylint: disable=unsubscriptable-object # https://github.com/PyCQA/pylint/issues/4034
|
||||
# pylint: disable=unsubscriptable-object # https://github.com/PyCQA/pylint/issues/4369
|
||||
process: subprocess.Popen[Any],
|
||||
) -> None:
|
||||
"""Force kill a subprocess and wait for it to exit."""
|
||||
|
|
Loading…
Reference in New Issue