fix: service location on new userdata

This commit is contained in:
Inex Code 2023-12-28 21:26:32 +03:00
parent 5fe4c405ce
commit 87c58a5c9b

View file

@ -209,7 +209,7 @@ class Service(ABC):
return root_device return root_device
with utils.ReadUserData() as userdata: with utils.ReadUserData() as userdata:
if userdata.get("useBinds", False): if userdata.get("useBinds", False):
return userdata.get(cls.get_id(), {}).get( return userdata.get("modules", {}).get(cls.get_id(), {}).get(
"location", "location",
root_device, root_device,
) )