export default function canToggleDomain(domain, servicesMap) {
  const serviceDomain = servicesMap.get(domain);
  return !!serviceDomain && serviceDomain.services.has('turn_on');
}

@@ -56,16 +56,54 @@
 sMap) %7B%0A
+  if (domain === 'lock') return true;%0A
   const 

Add support for locks in canToggleDomain