Add type ignore error codes [helpers] (#66776)
This commit is contained in:
parent
0188e8b319
commit
bfb1abd3a2
12 changed files with 25 additions and 23 deletions
|
@ -68,11 +68,11 @@ def find_coordinates(
|
|||
|
||||
# Check if entity_state is a zone
|
||||
zone_entity = hass.states.get(f"zone.{entity_state.state}")
|
||||
if has_location(zone_entity): # type: ignore
|
||||
if has_location(zone_entity): # type: ignore[arg-type]
|
||||
_LOGGER.debug(
|
||||
"%s is in %s, getting zone location", name, zone_entity.entity_id # type: ignore
|
||||
"%s is in %s, getting zone location", name, zone_entity.entity_id # type: ignore[union-attr]
|
||||
)
|
||||
return _get_location_from_attributes(zone_entity) # type: ignore
|
||||
return _get_location_from_attributes(zone_entity) # type: ignore[arg-type]
|
||||
|
||||
# Check if entity_state is a friendly name of a zone
|
||||
if (zone_coords := resolve_zone(hass, entity_state.state)) is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue