Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…nent into dev
  • Loading branch information
dgtal1 committed Oct 3, 2022
2 parents f1b2f5f + 6c5fc33 commit e9237b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extalife/helpers/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ def _get_core(self, entity_id: str) -> CoreType:

def _get_entry_id(self, entity_id: str):
""" Resolve ConfigEntry.entry_id for entity_id """
registry = asyncio.run_coroutine_threadsafe(er.async_get_registry(self._hass), self._hass.loop).result()
# registry = asyncio.run_coroutine_threadsafe(er.async_get_registry(self._hass), self._hass.loop).result()
registry = er.async_get(self._hass)
return registry.async_get(entity_id).config_entry_id

async def async_register_services(self):
Expand Down

0 comments on commit e9237b9

Please sign in to comment.