Skip to content

Commit

Permalink
Remove debug
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco committed Apr 18, 2020
1 parent 06ba9d7 commit 46cc547
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions homeassistant/components/homekit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,14 +396,12 @@ async def async_start(self, *args):

ent_reg = await entity_registry.async_get_registry(self.hass)

domain_device_classes = {
("binary_sensor", DEVICE_CLASS_BATTERY_CHARGING),
("sensor", DEVICE_CLASS_BATTERY),
}

device_lookup = ent_reg.async_get_device_class_lookup(domain_device_classes)

_LOGGER.debug("device_lookup: %s", device_lookup)
device_lookup = ent_reg.async_get_device_class_lookup(
{
("binary_sensor", DEVICE_CLASS_BATTERY_CHARGING),
("sensor", DEVICE_CLASS_BATTERY),
}
)

bridged_states = []
for state in self.hass.states.async_all():
Expand Down Expand Up @@ -473,11 +471,6 @@ def _async_configure_linked_battery_sensors(self, ent_reg, device_lookup, state)
entry.device_id
].get(("binary_sensor", DEVICE_CLASS_BATTERY_CHARGING))
if battery_charging_binary_sensor_entity_id:
_LOGGER.debug(
"Found linked charging sensor for: %s: %s",
state.entity_id,
battery_charging_binary_sensor_entity_id,
)
self._config.setdefault(state.entity_id, {}).setdefault(
CONF_LINKED_BATTERY_CHARGING_SENSOR,
battery_charging_binary_sensor_entity_id,
Expand All @@ -488,11 +481,6 @@ def _async_configure_linked_battery_sensors(self, ent_reg, device_lookup, state)
("sensor", DEVICE_CLASS_BATTERY)
)
if battery_sensor_entity_id:
_LOGGER.debug(
"Found linked battery sensor for: %s: %s",
state.entity_id,
battery_sensor_entity_id,
)
self._config.setdefault(state.entity_id, {}).setdefault(
CONF_LINKED_BATTERY_SENSOR, battery_sensor_entity_id
)

0 comments on commit 46cc547

Please sign in to comment.