python-sdk icon indicating copy to clipboard operation
python-sdk copied to clipboard

Actions as class methods

Open thegoliathgeek opened this issue 2 years ago • 4 comments

something like shown below

class SinricProSwitch {
	
}

class SinricPro {

}

def on_power_state(state) {
 return true, newState
}

sinricpro_switch = SinricProSwitch("deviceId");
sinricpro_switch.on_power_state(on_power_state)

sinricpro = SinricPro();
sinricpro.add_device(sinricProSwitch);
sinricpro.start()

thegoliathgeek avatar Jun 28 '23 16:06 thegoliathgeek

Hi @thegoliathgeek are you working on this?

kakopappa avatar Aug 21 '23 01:08 kakopappa

@kakopappa Yes, maybe this weekend . It can be tested

thegoliathgeek avatar Aug 21 '23 02:08 thegoliathgeek

Hey I am working on this. It requires full reconfiguration Might take some more time.

thegoliathgeek avatar Aug 27 '23 10:08 thegoliathgeek

Great. Thanks for the heads up

On Sun, 27 Aug 2023 at 5:10 PM Dhanush @.***> wrote:

Hey I am working on this. It requires full reconfiguration Might take some more time.

— Reply to this email directly, view it on GitHub https://github.com/sinricpro/python-sdk/issues/54#issuecomment-1694626502, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZAZZQVWIHZ32KUJIXSF4LXXMMHVANCNFSM6AAAAAAZXL4YZA . You are receiving this because you were mentioned.Message ID: @.***>

kakopappa avatar Aug 27 '23 11:08 kakopappa