Skip to content

Commit 3ea85a8

Browse files
authored
Fix hass.helpers instance_id deprecation
1 parent c2bd869 commit 3ea85a8

File tree

1 file changed

+2
-1
lines changed
  • custom_components/remote_homeassistant

1 file changed

+2
-1
lines changed

custom_components/remote_homeassistant/views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import homeassistant
22
from homeassistant.components.http import HomeAssistantView
33
from homeassistant.helpers.system_info import async_get_system_info
4+
from homeassistant.helpers.instance_id import async_get as async_get_instance_id
45

56
ATTR_INSTALLATION_TYPE = "installation_type"
67

@@ -17,7 +18,7 @@ async def get(self, request):
1718
system_info = await async_get_system_info(hass)
1819
return self.json(
1920
{
20-
"uuid": await hass.helpers.instance_id.async_get(),
21+
"uuid": await async_get_instance_id(hass),
2122
"location_name": hass.config.location_name,
2223
"ha_version": homeassistant.const.__version__,
2324
"installation_type": system_info[ATTR_INSTALLATION_TYPE],

0 commit comments

Comments
 (0)