mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Activate mypy for Alexa (#54042)
This commit is contained in:
parent
fc1babfc92
commit
020759d01d
@ -99,7 +99,7 @@ class AlexaCapability:
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def properties_non_controllable() -> bool:
|
def properties_non_controllable() -> bool | None:
|
||||||
"""Return True if non controllable."""
|
"""Return True if non controllable."""
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
"""Alexa related errors."""
|
"""Alexa related errors."""
|
||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
from homeassistant.exceptions import HomeAssistantError
|
from homeassistant.exceptions import HomeAssistantError
|
||||||
|
|
||||||
from .const import API_TEMP_UNITS
|
from .const import API_TEMP_UNITS
|
||||||
@ -22,8 +24,8 @@ class AlexaError(Exception):
|
|||||||
A handler can raise subclasses of this to return an error to the request.
|
A handler can raise subclasses of this to return an error to the request.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
namespace = None
|
namespace: str | None = None
|
||||||
error_type = None
|
error_type: str | None = None
|
||||||
|
|
||||||
def __init__(self, error_message, payload=None):
|
def __init__(self, error_message, payload=None):
|
||||||
"""Initialize an alexa error."""
|
"""Initialize an alexa error."""
|
||||||
|
3
mypy.ini
3
mypy.ini
@ -1271,9 +1271,6 @@ ignore_errors = true
|
|||||||
[mypy-homeassistant.components.aemet.*]
|
[mypy-homeassistant.components.aemet.*]
|
||||||
ignore_errors = true
|
ignore_errors = true
|
||||||
|
|
||||||
[mypy-homeassistant.components.alexa.*]
|
|
||||||
ignore_errors = true
|
|
||||||
|
|
||||||
[mypy-homeassistant.components.almond.*]
|
[mypy-homeassistant.components.almond.*]
|
||||||
ignore_errors = true
|
ignore_errors = true
|
||||||
|
|
||||||
|
@ -16,7 +16,6 @@ from .model import Config, Integration
|
|||||||
IGNORED_MODULES: Final[list[str]] = [
|
IGNORED_MODULES: Final[list[str]] = [
|
||||||
"homeassistant.components.adguard.*",
|
"homeassistant.components.adguard.*",
|
||||||
"homeassistant.components.aemet.*",
|
"homeassistant.components.aemet.*",
|
||||||
"homeassistant.components.alexa.*",
|
|
||||||
"homeassistant.components.almond.*",
|
"homeassistant.components.almond.*",
|
||||||
"homeassistant.components.amcrest.*",
|
"homeassistant.components.amcrest.*",
|
||||||
"homeassistant.components.analytics.*",
|
"homeassistant.components.analytics.*",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user