Update 'thermostat' service implementation

This commit is contained in:
Adrian Jagielak
2025-07-25 01:31:34 +02:00
parent bceccba572
commit dbc8b1d800
3 changed files with 238 additions and 83 deletions

View File

@@ -36,3 +36,7 @@ export function adapterServiceFromServiceAddress(
return adapterName;
}
export function replaceSvcInAddr(addr: string, newService: string): string {
return addr.replace(/\/sv:[^/]+/, `/sv:${newService}`);
}