diff light.py @ 25:cee43f550577

add /lightNames
author drewp@bigasterisk.com
date Fri, 02 Feb 2024 20:52:09 -0800
parents 7d9a056e29fe
children 33b3eb24506e
line wrap: on
line diff
--- a/light.py	Fri Feb 02 20:51:48 2024 -0800
+++ b/light.py	Fri Feb 02 20:52:09 2024 -0800
@@ -162,6 +162,9 @@
 
         self.notifyChanged()
 
+    def allNames(self) -> list[str]:
+        return list(self._d.keys())
+
     def byName(self, name: str) -> Light:
         return self._d[name]