Skip to content

Claude fixes/scenes viewmodel#159

Open
jonathanj81 wants to merge 3 commits intoreferencefrom
claudeFixes/scenesViewmodel
Open

Claude fixes/scenes viewmodel#159
jonathanj81 wants to merge 3 commits intoreferencefrom
claudeFixes/scenesViewmodel

Conversation

@jonathanj81
Copy link
Copy Markdown

Changelog

Your description here.

Added

Changed

  • Updated, via Claude, as a test case, the ScenesViewModel to fix minor mistakes and use better practices.

Removed

Is there test coverage for your changes?

Yes/No

Screenshots

jonathanjohnson and others added 3 commits January 6, 2026 15:26
- Remove suspend from getScenes, getScene, getLightsForRoom, removeScene,
  and saveOrUpdateScene since they use viewModelScope.launch internally
- Add missing early return in getLightsForRoom for invalid room ID
- Remove unnecessary coroutine scopes from ScenesScreen composables
- Remove unused imports (rememberCoroutineScope, kotlinx.coroutines.launch)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Replace direct value assignments with update function calls for
atomic state updates in ScenesViewModel.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant