Remove the MCP server and split NordPool today/tomorrow fetch decisions
- Drop the HomeAssistant.McpServer wiring from opencode.json along with the Cursor live-validation hook, rule and skill; update AGENTS.md and README - Rename ShouldFetchNewPrices to ShouldFetchTodaysPrices and add a separate ShouldFetchTomorrowPrice that waits until the CET publish hour (TomorrowPricesPublishHour) - Inject TimeProvider into NordPoolPriceService, use the CET zone for the current date and record fetch timestamps from it - Rework the NordPool tests around FakeTimeProvider and cover fetching only today before the publish hour
This commit is contained in:
+2
-23
@@ -1,24 +1,3 @@
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"mcp": {
|
||||
"homeassistant": {
|
||||
"type": "local",
|
||||
"command": [
|
||||
"dotnet",
|
||||
"run",
|
||||
"--project",
|
||||
"HomeAssistant.McpServer/HomeAssistant.McpServer.csproj",
|
||||
"--configuration",
|
||||
"Debug",
|
||||
"--verbosity",
|
||||
"quiet"
|
||||
],
|
||||
"enabled": true,
|
||||
"timeout": 60000,
|
||||
"environment": {
|
||||
"DOTNET_NO_LOGO": "1",
|
||||
"DOTNET_ENVIRONMENT": "Development"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
"$schema": "https://opencode.ai/config.json"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user