Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actions as class methods #54

Open
thegoliathgeek opened this issue Jun 28, 2023 · 4 comments
Open

Actions as class methods #54

thegoliathgeek opened this issue Jun 28, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@thegoliathgeek
Copy link
Contributor

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 thegoliathgeek changed the title Move actions as class methods Actions as class methods Jun 28, 2023
@thegoliathgeek thegoliathgeek self-assigned this Jun 28, 2023
@thegoliathgeek thegoliathgeek added the enhancement New feature or request label Jun 28, 2023
@kakopappa
Copy link
Contributor

Hi @thegoliathgeek are you working on this?

@thegoliathgeek
Copy link
Contributor Author

thegoliathgeek commented Aug 21, 2023

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

@thegoliathgeek
Copy link
Contributor Author

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

@kakopappa
Copy link
Contributor

kakopappa commented Aug 27, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants