mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 16:57:53 +00:00
Activate mypy for google_pubsub (#54649)
This commit is contained in:
parent
afade22feb
commit
69bc6bbe48
@ -375,6 +375,7 @@ omit =
|
||||
homeassistant/components/google/*
|
||||
homeassistant/components/google_cloud/tts.py
|
||||
homeassistant/components/google_maps/device_tracker.py
|
||||
homeassistant/components/google_pubsub/__init__.py
|
||||
homeassistant/components/google_travel_time/__init__.py
|
||||
homeassistant/components/google_travel_time/helpers.py
|
||||
homeassistant/components/google_travel_time/sensor.py
|
||||
|
@ -45,9 +45,12 @@ def setup(hass: HomeAssistant, yaml_config: dict[str, Any]):
|
||||
config = yaml_config[DOMAIN]
|
||||
project_id = config[CONF_PROJECT_ID]
|
||||
topic_name = config[CONF_TOPIC_NAME]
|
||||
service_principal_path = os.path.join(
|
||||
hass.config.config_dir, config[CONF_SERVICE_PRINCIPAL]
|
||||
)
|
||||
if hass.config.config_dir:
|
||||
service_principal_path = os.path.join(
|
||||
hass.config.config_dir, config[CONF_SERVICE_PRINCIPAL]
|
||||
)
|
||||
else:
|
||||
service_principal_path = config[CONF_SERVICE_PRINCIPAL]
|
||||
|
||||
if not os.path.isfile(service_principal_path):
|
||||
_LOGGER.error("Path to credentials file cannot be found")
|
||||
|
3
mypy.ini
3
mypy.ini
@ -1367,9 +1367,6 @@ ignore_errors = true
|
||||
[mypy-homeassistant.components.google_assistant.*]
|
||||
ignore_errors = true
|
||||
|
||||
[mypy-homeassistant.components.google_pubsub.*]
|
||||
ignore_errors = true
|
||||
|
||||
[mypy-homeassistant.components.gpmdp.*]
|
||||
ignore_errors = true
|
||||
|
||||
|
@ -48,7 +48,6 @@ IGNORED_MODULES: Final[list[str]] = [
|
||||
"homeassistant.components.geniushub.*",
|
||||
"homeassistant.components.glances.*",
|
||||
"homeassistant.components.google_assistant.*",
|
||||
"homeassistant.components.google_pubsub.*",
|
||||
"homeassistant.components.gpmdp.*",
|
||||
"homeassistant.components.gree.*",
|
||||
"homeassistant.components.growatt_server.*",
|
||||
|
Loading…
x
Reference in New Issue
Block a user