samclane / lifx-mycroft

A mycroft skill to control LIFX brand smartlights
GNU General Public License v3.0
8 stars 3 forks source link

Test issues #2

Closed forslund closed 6 years ago

forslund commented 6 years ago

The Adapt regex handling is a bit inconsistent for speed.

An alternative here may be to add the options 0-100% programattically to the Percent keyword:

in initialize:

        # Register 0-100%
        for p in range(101):
            self.register_vocabulary('{}%'.format(p), 'Percent')