Remove unnecessary string literal concatenations (#30360)

This commit is contained in:
Ville Skyttä authored and GitHub committed 2020-01-02 21:17:10 +02:00
1 parent cac750066a
commit e6388e186c
183 files changed
+362 -393

No files matched your search

+8 -8
View File
@@ -275,7 +275,7 @@ def nice_print_node(node):
value_id: _obj_to_dict(value) for value_id, value in node.values.items()
}
_LOGGER.info("FOUND NODE %s \n" "%s", node.product_name, node_dict)
_LOGGER.info("FOUND NODE %s \n%s", node.product_name, node_dict)
def get_config_value(node, value_index, tries=5):
@@ -476,7 +476,7 @@ async def async_setup_entry(hass, config_entry):
@callback
def _on_timeout(sec):
_LOGGER.warning(
"Z-Wave node %d not ready after %d seconds, " "continuing anyway",
"Z-Wave node %d not ready after %d seconds, continuing anyway",
entity.node_id,
sec,
)
@@ -526,7 +526,7 @@ async def async_setup_entry(hass, config_entry):
def network_complete():
"""Handle the querying of all nodes on network."""
_LOGGER.info(
"Z-Wave network is complete. All nodes on the network " "have been queried"
"Z-Wave network is complete. All nodes on the network have been queried"
)
hass.bus.fire(const.EVENT_NETWORK_COMPLETE)
@@ -684,7 +684,7 @@ async def async_setup_entry(hass, config_entry):
if value.type == const.TYPE_BOOL:
value.data = int(selection == "True")
_LOGGER.info(
"Setting config parameter %s on Node %s " "with bool selection %s",
"Setting config parameter %s on Node %s with bool selection %s",
param,
node_id,
str(selection),
@@ -693,7 +693,7 @@ async def async_setup_entry(hass, config_entry):
if value.type == const.TYPE_LIST:
value.data = str(selection)
_LOGGER.info(
"Setting config parameter %s on Node %s " "with list selection %s",
"Setting config parameter %s on Node %s with list selection %s",
param,
node_id,
str(selection),
@@ -712,7 +712,7 @@ async def async_setup_entry(hass, config_entry):
return
value.data = int(selection)
_LOGGER.info(
"Setting config parameter %s on Node %s " "with selection %s",
"Setting config parameter %s on Node %s with selection %s",
param,
node_id,
selection,
@@ -720,7 +720,7 @@ async def async_setup_entry(hass, config_entry):
return
node.set_config_param(param, selection, size)
_LOGGER.info(
"Setting unknown config parameter %s on Node %s " "with selection %s",
"Setting unknown config parameter %s on Node %s with selection %s",
param,
node_id,
selection,
@@ -831,7 +831,7 @@ async def async_setup_entry(hass, config_entry):
)
return
_LOGGER.info(
"Node %s on instance %s does not have resettable " "meters.",
"Node %s on instance %s does not have resettable meters.",
node_id,
instance,
)