Rename HomeKit Controller to HomeKit Device (#95286)

This commit is contained in:
Paulus Schoutsen 2023-06-26 16:26:16 -04:00 committed by GitHub
parent 2872b6cf61
commit bc8be9caea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 10 deletions

View file

@ -272,7 +272,7 @@ class HKDevice:
self.hass,
self.async_update_available_state,
timedelta(seconds=BLE_AVAILABILITY_CHECK_INTERVAL),
name=f"HomeKit Controller {self.unique_id} BLE availability "
name=f"HomeKit Device {self.unique_id} BLE availability "
"check poll",
)
)
@ -291,7 +291,7 @@ class HKDevice:
self.hass,
self.async_request_update,
self.pairing.poll_interval,
name=f"HomeKit Controller {self.unique_id} availability check poll",
name=f"HomeKit Device {self.unique_id} availability check poll",
)
)
@ -714,7 +714,7 @@ class HKDevice:
if not self._polling_lock_warned:
_LOGGER.warning(
(
"HomeKit controller update skipped as previous poll still in"
"HomeKit device update skipped as previous poll still in"
" flight: %s"
),
self.unique_id,
@ -725,7 +725,7 @@ class HKDevice:
if self._polling_lock_warned:
_LOGGER.info(
(
"HomeKit controller no longer detecting back pressure - not"
"HomeKit device no longer detecting back pressure - not"
" skipping poll: %s"
),
self.unique_id,
@ -733,7 +733,7 @@ class HKDevice:
self._polling_lock_warned = False
async with self._polling_lock:
_LOGGER.debug("Starting HomeKit controller update: %s", self.unique_id)
_LOGGER.debug("Starting HomeKit device update: %s", self.unique_id)
try:
new_values_dict = await self.get_characteristics(
@ -755,7 +755,7 @@ class HKDevice:
self._poll_failures = 0
self.process_new_events(new_values_dict)
_LOGGER.debug("Finished HomeKit controller update: %s", self.unique_id)
_LOGGER.debug("Finished HomeKit device update: %s", self.unique_id)
def process_new_events(
self, new_values_dict: dict[tuple[int, int], dict[str, Any]]