SIngle entry for Fastdotcom (#114963)

This commit is contained in:
Erwin Douna 2024-04-05 18:53:28 +02:00 committed by GitHub
parent 9204ccfa17
commit f142e902df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 5 deletions

View File

@ -20,9 +20,6 @@ class FastdotcomConfigFlow(ConfigFlow, domain=DOMAIN):
self, user_input: dict[str, Any] | None = None self, user_input: dict[str, Any] | None = None
) -> ConfigFlowResult: ) -> ConfigFlowResult:
"""Handle the initial step.""" """Handle the initial step."""
if self._async_current_entries():
return self.async_abort(reason="single_instance_allowed")
if user_input is not None: if user_input is not None:
return self.async_create_entry(title=DEFAULT_NAME, data={}) return self.async_create_entry(title=DEFAULT_NAME, data={})

View File

@ -7,5 +7,6 @@
"iot_class": "cloud_polling", "iot_class": "cloud_polling",
"loggers": ["fastdotcom"], "loggers": ["fastdotcom"],
"quality_scale": "gold", "quality_scale": "gold",
"requirements": ["fastdotcom==0.0.3"] "requirements": ["fastdotcom==0.0.3"],
"single_config_entry": true
} }

View File

@ -1760,7 +1760,8 @@
"name": "Fast.com", "name": "Fast.com",
"integration_type": "hub", "integration_type": "hub",
"config_flow": true, "config_flow": true,
"iot_class": "cloud_polling" "iot_class": "cloud_polling",
"single_config_entry": true
}, },
"feedreader": { "feedreader": {
"name": "Feedreader", "name": "Feedreader",