mirror of
https://github.com/adrianjagielak/home-assistant-futurehome.git
synced 2026-02-11 07:15:38 +00:00
Update 'thermostat' service implementation
This commit is contained in:
@@ -36,3 +36,7 @@ export function adapterServiceFromServiceAddress(
|
||||
|
||||
return adapterName;
|
||||
}
|
||||
|
||||
export function replaceSvcInAddr(addr: string, newService: string): string {
|
||||
return addr.replace(/\/sv:[^/]+/, `/sv:${newService}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user