Skip to content

Commit

Permalink
Fix hass.helpers instance_id deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
jaym25 authored Jun 20, 2024
1 parent c2bd869 commit 3ea85a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/remote_homeassistant/views.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import homeassistant
from homeassistant.components.http import HomeAssistantView
from homeassistant.helpers.system_info import async_get_system_info
from homeassistant.helpers.instance_id import async_get as async_get_instance_id

ATTR_INSTALLATION_TYPE = "installation_type"

Expand All @@ -17,7 +18,7 @@ async def get(self, request):
system_info = await async_get_system_info(hass)
return self.json(
{
"uuid": await hass.helpers.instance_id.async_get(),
"uuid": await async_get_instance_id(hass),
"location_name": hass.config.location_name,
"ha_version": homeassistant.const.__version__,
"installation_type": system_info[ATTR_INSTALLATION_TYPE],
Expand Down

0 comments on commit 3ea85a8

Please sign in to comment.