Updated is_on -> on to be consistent with rust
All checks were successful
Build and deploy / Build application (push) Successful in 3m23s
Build and deploy / Build container (push) Successful in 1m2s
Build and deploy / Deploy container (push) Successful in 18s

This commit is contained in:
2024-12-08 05:35:48 +01:00
parent e4c211a278
commit 175056416e
2 changed files with 6 additions and 6 deletions

View File

@@ -68,7 +68,7 @@ macro_rules! impl_device {
Ok(())
});
methods.add_async_method("is_on", |_lua, this, _: ()| async move {
methods.add_async_method("on", |_lua, this, _: ()| async move {
Ok((this.deref().cast() as Option<&dyn google_home::traits::OnOff>)
.expect("Cast should be valid")
.on()