mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Activate mypy from amcrest and make the needed changes (#54392)
This commit is contained in:
parent
5de1adacf7
commit
1d40a6e407
@ -53,7 +53,7 @@ _CROSSLINE_DETECTED_PARAMS = (
|
||||
DEVICE_CLASS_MOTION,
|
||||
"CrossLineDetection",
|
||||
)
|
||||
BINARY_SENSORS = {
|
||||
RAW_BINARY_SENSORS = {
|
||||
BINARY_SENSOR_AUDIO_DETECTED: _AUDIO_DETECTED_PARAMS,
|
||||
BINARY_SENSOR_AUDIO_DETECTED_POLLED: _AUDIO_DETECTED_PARAMS,
|
||||
BINARY_SENSOR_MOTION_DETECTED: _MOTION_DETECTED_PARAMS,
|
||||
@ -64,7 +64,7 @@ BINARY_SENSORS = {
|
||||
}
|
||||
BINARY_SENSORS = {
|
||||
k: dict(zip((SENSOR_NAME, SENSOR_DEVICE_CLASS, SENSOR_EVENT_CODE), v))
|
||||
for k, v in BINARY_SENSORS.items()
|
||||
for k, v in RAW_BINARY_SENSORS.items()
|
||||
}
|
||||
_EXCLUSIVE_OPTIONS = [
|
||||
{BINARY_SENSOR_MOTION_DETECTED, BINARY_SENSOR_MOTION_DETECTED_POLLED},
|
||||
|
3
mypy.ini
3
mypy.ini
@ -1274,9 +1274,6 @@ ignore_errors = true
|
||||
[mypy-homeassistant.components.almond.*]
|
||||
ignore_errors = true
|
||||
|
||||
[mypy-homeassistant.components.amcrest.*]
|
||||
ignore_errors = true
|
||||
|
||||
[mypy-homeassistant.components.analytics.*]
|
||||
ignore_errors = true
|
||||
|
||||
|
@ -17,7 +17,6 @@ IGNORED_MODULES: Final[list[str]] = [
|
||||
"homeassistant.components.adguard.*",
|
||||
"homeassistant.components.aemet.*",
|
||||
"homeassistant.components.almond.*",
|
||||
"homeassistant.components.amcrest.*",
|
||||
"homeassistant.components.analytics.*",
|
||||
"homeassistant.components.asuswrt.*",
|
||||
"homeassistant.components.atag.*",
|
||||
|
Loading…
x
Reference in New Issue
Block a user