en un clic
implement
// Implement approved plans with precision and quality for Linus Dashboard Home Assistant integration. Use when implementing features, executing approved plans, writing code following standards, or developing new functionality.
// Implement approved plans with precision and quality for Linus Dashboard Home Assistant integration. Use when implementing features, executing approved plans, writing code following standards, or developing new functionality.
Create a beta pre-release for community testing with intelligent version detection. Use when creating beta releases, publishing pre-releases, or preparing versions for community testing.
Create a stable production release with intelligent detection (finalize beta or direct release). Use when publishing stable releases, finalizing beta versions, or creating production releases.
Debug errors, bugs, and unexpected behavior systematically in Home Assistant integration. Use when investigating errors, analyzing stack traces, fixing bugs, or troubleshooting unexpected behavior.
Check if project is ready for release with comprehensive pre-release validation. Use when verifying release readiness, running validation checks, or checking project quality before publishing.
Rollback a failed release by deleting tags and reverting version changes. Use when a release fails, needs to be cancelled, or when reverting a problematic release.
Review code quality, security, and maintainability before committing. Use when reviewing code changes, checking code quality, performing security review, or validating changes before commit.
| name | implement |
| description | Implement approved plans with precision and quality for Linus Dashboard Home Assistant integration. Use when implementing features, executing approved plans, writing code following standards, or developing new functionality. |
Implement approved plans for Linus Dashboard, a Home Assistant custom integration with TypeScript frontend and Python backend.
You are a senior full-stack developer implementing features for Linus Dashboard. You have an APPROVED PLAN that breaks down the work into specific tasks. Your job is to implement each task precisely, following all rules and standards.
Before starting, load these files:
Follow standards:
npm run build
npm run type-check
npm run lint:check
// src/views/XxxView.ts
import { AbstractView } from "./AbstractView";
import { XxxCard } from "../cards/XxxCard";
export class XxxView extends AbstractView {
/**
* Create the Xxx view
*/
async render(): Promise<void> {
// Implementation
}
}
// src/cards/XxxCard.ts
import { AbstractCard } from "./AbstractCard";
export class XxxCard extends AbstractCard {
/**
* Render the card
*/
protected async renderContent(): Promise<HTMLElement> {
// Implementation
}
}
# custom_components/linus_dashboard/services.py
async def async_setup_services(hass: HomeAssistant) -> None:
"""Set up Linus Dashboard services."""
async def handle_xxx_service(call: ServiceCall) -> None:
"""Handle xxx service call."""
# Implementation
hass.services.async_register(
DOMAIN,
"xxx_service",
handle_xxx_service,
schema=XXX_SERVICE_SCHEMA,
)
# custom_components/linus_dashboard/sensor.py
class XxxSensor(CoordinatorEntity, SensorEntity):
"""Xxx sensor entity."""
def __init__(
self,
coordinator: DataUpdateCoordinator,
entry: ConfigEntry,
) -> None:
"""Initialize the sensor."""
super().__init__(coordinator)
self._entry = entry
self._attr_unique_id = f"{entry.entry_id}_xxx"
@property
def native_value(self) -> StateType:
"""Return the state."""
return self.coordinator.data.get("xxx")
any types without justification# TypeScript
npm run build
npm run type-check
npm run lint
# Manual testing in HA
# 1. Restart HA
# 2. Check logs
# 3. Verify functionality
Frontend (TypeScript):
Backend (Python):
Before marking task as complete:
npm run build after changes