mirror of
https://github.com/home-assistant/core.git
synced 2025-10-17 15:49:58 +00:00
Append name char value from the service to HomeKit Controller Entities (#74359)
This commit is contained in:
@@ -10,6 +10,11 @@ from homeassistant.core import Event, HomeAssistant
|
||||
from .const import CONTROLLER
|
||||
|
||||
|
||||
def folded_name(name: str) -> str:
|
||||
"""Return a name that is used for matching a similar string."""
|
||||
return name.casefold().replace(" ", "")
|
||||
|
||||
|
||||
async def async_get_controller(hass: HomeAssistant) -> Controller:
|
||||
"""Get or create an aiohomekit Controller instance."""
|
||||
if existing := hass.data.get(CONTROLLER):
|
||||
|
Reference in New Issue
Block a user