MycroftAI / skill-homeassistant

Mycroft Skill/Integration for Homeassistant
GNU Lesser General Public License v3.0
114 stars 62 forks source link

Switch any intent file registrations to use the new decorator #48

Closed krisgesling closed 3 years ago

krisgesling commented 3 years ago

The old method of registering intent files was:

    self.register_intent_file(
            'set.climate.intent',
            self.handle_set_thermostat_intent
        )

These can now be converted to decorators eg:

    @intent_handler('set.climate.intent')
    self.handle_set_thermostat_intent(self, message):
        ...
Tony763 commented 3 years ago

@krisgesling Hi, this should be done, could you close it?