Skip to content

Conversation

@springfall2008
Copy link
Owner

No description provided.

@springfall2008 springfall2008 merged commit 28a3c7f into main Nov 15, 2025
5 checks passed
@springfall2008 springfall2008 deleted the fixes3 branch November 15, 2025 10:35
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR performs code cleanup by moving the import time statement to module-level scope and removing unnecessary runtime checks. The changes improve code organization by following Python best practices of placing imports at the top of files rather than inside functions.

  • Moved import time from function-local to module-level scope in plan.py and execute.py
  • Removed unnecessary hasattr() check for octopus_intelligent_charging attribute

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
apps/predbat/plan.py Moved import time from inside calculate_plan() method to module-level imports
apps/predbat/execute.py Moved import time from inside execute_plan() method to module-level imports and removed unnecessary hasattr() check for octopus_intelligent_charging

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

iangregory pushed a commit to iangregory/batpred that referenced this pull request Dec 3, 2025
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.

2 participants