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