Ensure consistent spelling of "ID" (#44585)

pull/44597/head
Philip Allgaier 2020-12-28 18:34:08 +01:00 committed by GitHub
parent 13d6f5454d
commit 392c058d34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 11 additions and 11 deletions

View File

@ -78,7 +78,7 @@ class DiscordNotificationService(BaseNotificationService):
) or discord_bot.get_user(channelid)
if channel is None:
_LOGGER.warning("Channel not found for id: %s", channelid)
_LOGGER.warning("Channel not found for ID: %s", channelid)
continue
# Must create new instances of File for each channel.
files = None

View File

@ -126,7 +126,7 @@ async def discover_devices(hass, hass_config):
if channel_function == SUPLA_FUNCTION_NONE:
_LOGGER.debug(
"Ignored function: %s, channel id: %s",
"Ignored function: %s, channel ID: %s",
channel_function,
channel["id"],
)
@ -136,7 +136,7 @@ async def discover_devices(hass, hass_config):
if component_name is None:
_LOGGER.warning(
"Unsupported function: %s, channel id: %s",
"Unsupported function: %s, channel ID: %s",
channel_function,
channel["id"],
)

View File

@ -268,7 +268,7 @@ class SystemMonitorSensor(Entity):
return
except psutil.NoSuchProcess as err:
_LOGGER.warning(
"Failed to load process with id: %s, old name: %s",
"Failed to load process with ID: %s, old name: %s",
err.pid,
err.name,
)

View File

@ -41,8 +41,8 @@ class TagIDExistsError(HomeAssistantError):
"""Raised when an item is not found."""
def __init__(self, item_id: str):
"""Initialize tag id exists error."""
super().__init__(f"Tag with id: {item_id} already exists.")
"""Initialize tag ID exists error."""
super().__init__(f"Tag with ID {item_id} already exists.")
self.item_id = item_id

View File

@ -157,7 +157,7 @@ async def async_setup_trigger(hass, tasmota_trigger, config_entry, discovery_has
discovery_id = tasmota_trigger.cfg.trigger_id
remove_update_signal = None
_LOGGER.debug(
"Discovered trigger with id: %s '%s'", discovery_id, tasmota_trigger.cfg
"Discovered trigger with ID: %s '%s'", discovery_id, tasmota_trigger.cfg
)
async def discovery_update(trigger_config):

View File

@ -38,7 +38,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
device_id = entry.data[DEVICE_ID]
gateway_id = entry.data[DEVICE_GATEWAY]
_LOGGER.debug(
"Setting up wolflink integration for device: %s (id: %s, gateway: %s)",
"Setting up wolflink integration for device: %s (ID: %s, gateway: %s)",
device_name,
device_id,
gateway_id,

View File

@ -634,7 +634,7 @@ class ZHAGateway:
tasks = []
for member in members:
_LOGGER.debug(
"Adding member with IEEE: %s and endpoint id: %s to group: %s:0x%04x",
"Adding member with IEEE: %s and endpoint ID: %s to group: %s:0x%04x",
member.ieee,
member.endpoint_id,
name,

View File

@ -863,7 +863,7 @@ class State:
if not valid_state(state):
raise InvalidStateError(
f"Invalid state encountered for entity id: {entity_id}. "
f"Invalid state encountered for entity ID: {entity_id}. "
"State max length is 255 characters."
)

View File

@ -464,7 +464,7 @@ class EntityPlatform:
# Make sure it is valid in case an entity set the value themselves
if not valid_entity_id(entity.entity_id):
entity.add_to_platform_abort()
raise HomeAssistantError(f"Invalid entity id: {entity.entity_id}")
raise HomeAssistantError(f"Invalid entity ID: {entity.entity_id}")
already_exists = entity.entity_id in self.entities
restored = False