Ensure consistent spelling of "ID" (#44585)
parent
13d6f5454d
commit
392c058d34
|
@ -78,7 +78,7 @@ class DiscordNotificationService(BaseNotificationService):
|
||||||
) or discord_bot.get_user(channelid)
|
) or discord_bot.get_user(channelid)
|
||||||
|
|
||||||
if channel is None:
|
if channel is None:
|
||||||
_LOGGER.warning("Channel not found for id: %s", channelid)
|
_LOGGER.warning("Channel not found for ID: %s", channelid)
|
||||||
continue
|
continue
|
||||||
# Must create new instances of File for each channel.
|
# Must create new instances of File for each channel.
|
||||||
files = None
|
files = None
|
||||||
|
|
|
@ -126,7 +126,7 @@ async def discover_devices(hass, hass_config):
|
||||||
|
|
||||||
if channel_function == SUPLA_FUNCTION_NONE:
|
if channel_function == SUPLA_FUNCTION_NONE:
|
||||||
_LOGGER.debug(
|
_LOGGER.debug(
|
||||||
"Ignored function: %s, channel id: %s",
|
"Ignored function: %s, channel ID: %s",
|
||||||
channel_function,
|
channel_function,
|
||||||
channel["id"],
|
channel["id"],
|
||||||
)
|
)
|
||||||
|
@ -136,7 +136,7 @@ async def discover_devices(hass, hass_config):
|
||||||
|
|
||||||
if component_name is None:
|
if component_name is None:
|
||||||
_LOGGER.warning(
|
_LOGGER.warning(
|
||||||
"Unsupported function: %s, channel id: %s",
|
"Unsupported function: %s, channel ID: %s",
|
||||||
channel_function,
|
channel_function,
|
||||||
channel["id"],
|
channel["id"],
|
||||||
)
|
)
|
||||||
|
|
|
@ -268,7 +268,7 @@ class SystemMonitorSensor(Entity):
|
||||||
return
|
return
|
||||||
except psutil.NoSuchProcess as err:
|
except psutil.NoSuchProcess as err:
|
||||||
_LOGGER.warning(
|
_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.pid,
|
||||||
err.name,
|
err.name,
|
||||||
)
|
)
|
||||||
|
|
|
@ -41,8 +41,8 @@ class TagIDExistsError(HomeAssistantError):
|
||||||
"""Raised when an item is not found."""
|
"""Raised when an item is not found."""
|
||||||
|
|
||||||
def __init__(self, item_id: str):
|
def __init__(self, item_id: str):
|
||||||
"""Initialize tag id exists error."""
|
"""Initialize tag ID exists error."""
|
||||||
super().__init__(f"Tag with id: {item_id} already exists.")
|
super().__init__(f"Tag with ID {item_id} already exists.")
|
||||||
self.item_id = item_id
|
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
|
discovery_id = tasmota_trigger.cfg.trigger_id
|
||||||
remove_update_signal = None
|
remove_update_signal = None
|
||||||
_LOGGER.debug(
|
_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):
|
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]
|
device_id = entry.data[DEVICE_ID]
|
||||||
gateway_id = entry.data[DEVICE_GATEWAY]
|
gateway_id = entry.data[DEVICE_GATEWAY]
|
||||||
_LOGGER.debug(
|
_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_name,
|
||||||
device_id,
|
device_id,
|
||||||
gateway_id,
|
gateway_id,
|
||||||
|
|
|
@ -634,7 +634,7 @@ class ZHAGateway:
|
||||||
tasks = []
|
tasks = []
|
||||||
for member in members:
|
for member in members:
|
||||||
_LOGGER.debug(
|
_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.ieee,
|
||||||
member.endpoint_id,
|
member.endpoint_id,
|
||||||
name,
|
name,
|
||||||
|
|
|
@ -863,7 +863,7 @@ class State:
|
||||||
|
|
||||||
if not valid_state(state):
|
if not valid_state(state):
|
||||||
raise InvalidStateError(
|
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."
|
"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
|
# Make sure it is valid in case an entity set the value themselves
|
||||||
if not valid_entity_id(entity.entity_id):
|
if not valid_entity_id(entity.entity_id):
|
||||||
entity.add_to_platform_abort()
|
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
|
already_exists = entity.entity_id in self.entities
|
||||||
restored = False
|
restored = False
|
||||||
|
|
Loading…
Reference in New Issue