Ensure consistent spelling of "ID" (#44585)
parent
13d6f5454d
commit
392c058d34
|
@ -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
|
||||
|
|
|
@ -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"],
|
||||
)
|
||||
|
|
|
@ -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,
|
||||
)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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."
|
||||
)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue