diff --git a/homeassistant/components/fastdotcom/services.yaml b/homeassistant/components/fastdotcom/services.yaml index f0afb49dbe0..3664f9ece9f 100644 --- a/homeassistant/components/fastdotcom/services.yaml +++ b/homeassistant/components/fastdotcom/services.yaml @@ -1,2 +1,2 @@ speedtest: - description: Immediately take a speedest with Fast.com + description: Immediately execute a speed test with Fast.com diff --git a/homeassistant/components/iperf3/services.yaml b/homeassistant/components/iperf3/services.yaml index a3f645f5085..aaa88c2341c 100644 --- a/homeassistant/components/iperf3/services.yaml +++ b/homeassistant/components/iperf3/services.yaml @@ -1,5 +1,5 @@ speedtest: - description: Immediately take a speedest with iperf3 + description: Immediately execute a speed test with iperf3 fields: host: description: The host name of the iperf3 server (already configured) to run a test with. diff --git a/homeassistant/components/speedtestdotnet/__init__.py b/homeassistant/components/speedtestdotnet/__init__.py index 32562251ed4..cb3144e266e 100644 --- a/homeassistant/components/speedtestdotnet/__init__.py +++ b/homeassistant/components/speedtestdotnet/__init__.py @@ -60,7 +60,6 @@ def server_id_valid(server_id): async def async_setup(hass, config): """Import integration from config.""" - if DOMAIN in config: hass.async_create_task( hass.config_entries.flow.async_init( @@ -139,6 +138,7 @@ class SpeedTestDataCoordinator(DataUpdateCoordinator): try: server_list = self.api.get_servers() except speedtest.ConfigRetrievalError: + _LOGGER.debug("Error retrieving server list") return self.servers[DEFAULT_SERVER] = {} diff --git a/homeassistant/components/speedtestdotnet/config_flow.py b/homeassistant/components/speedtestdotnet/config_flow.py index 2bc462afdb0..5ff405b59a8 100644 --- a/homeassistant/components/speedtestdotnet/config_flow.py +++ b/homeassistant/components/speedtestdotnet/config_flow.py @@ -1,6 +1,4 @@ """Config flow for Speedtest.net.""" -import logging - import voluptuous as vol from homeassistant import config_entries @@ -18,8 +16,6 @@ from .const import ( ) from .const import DOMAIN # pylint: disable=unused-import -_LOGGER = logging.getLogger(__name__) - class SpeedTestFlowHandler(config_entries.ConfigFlow, domain=DOMAIN): """Handle Speedtest.net config flow.""" diff --git a/homeassistant/components/speedtestdotnet/sensor.py b/homeassistant/components/speedtestdotnet/sensor.py index cf0a91a240e..5607d2570c9 100644 --- a/homeassistant/components/speedtestdotnet/sensor.py +++ b/homeassistant/components/speedtestdotnet/sensor.py @@ -1,6 +1,4 @@ """Support for Speedtest.net internet speed testing sensor.""" -import logging - from homeassistant.const import ATTR_ATTRIBUTION from homeassistant.core import callback from homeassistant.helpers.restore_state import RestoreEntity @@ -19,8 +17,6 @@ from .const import ( SENSOR_TYPES, ) -_LOGGER = logging.getLogger(__name__) - async def async_setup_entry(hass, config_entry, async_add_entities): """Set up the Speedtestdotnet sensors.""" diff --git a/homeassistant/components/speedtestdotnet/services.yaml b/homeassistant/components/speedtestdotnet/services.yaml index 299d457350d..489261ba77a 100644 --- a/homeassistant/components/speedtestdotnet/services.yaml +++ b/homeassistant/components/speedtestdotnet/services.yaml @@ -1,2 +1,2 @@ speedtest: - description: Immediately take a speedest with Speedtest.net + description: Immediately execute a speed test with Speedtest.net diff --git a/homeassistant/components/speedtestdotnet/strings.json b/homeassistant/components/speedtestdotnet/strings.json index c4b92b16ff3..cf3587af6c5 100644 --- a/homeassistant/components/speedtestdotnet/strings.json +++ b/homeassistant/components/speedtestdotnet/strings.json @@ -2,13 +2,12 @@ "config": { "step": { "user": { - "title": "Set up SpeedTest", - "description": "Are you sure you want to set up SpeedTest?" + "description": "[%key:common::config_flow::description::confirm_setup%]" } }, "abort": { "single_instance_allowed": "[%key:common::config_flow::abort::single_instance_allowed%]", - "wrong_server_id": "Server id is not valid" + "wrong_server_id": "Server ID is not valid" } }, "options": { @@ -20,9 +19,6 @@ "server_name": "Select test server" } } - }, - "error": { - "retrive_error": "Error retriving servers list" } } -} +} \ No newline at end of file diff --git a/homeassistant/components/speedtestdotnet/translations/en.json b/homeassistant/components/speedtestdotnet/translations/en.json index 98b5dd7b183..44a46e82a6c 100644 --- a/homeassistant/components/speedtestdotnet/translations/en.json +++ b/homeassistant/components/speedtestdotnet/translations/en.json @@ -1,21 +1,16 @@ { "config": { "abort": { - "one_instance_allowed": "Only a single instance is necessary.", - "single_instance_allowed": "Already configured. Only a single configuration possible.", - "wrong_server_id": "Server id is not valid" + "single_instance_allowed": "[%key:common::config_flow::abort::single_instance_allowed%]", + "wrong_server_id": "Server ID is not valid" }, "step": { "user": { - "description": "Are you sure you want to set up SpeedTest?", - "title": "Set up SpeedTest" + "description": "[%key:common::config_flow::description::confirm_setup%]" } } }, "options": { - "error": { - "retrive_error": "Error retriving servers list" - }, "step": { "init": { "data": {