Fix area type

This commit is contained in:
Paul Bottein 2025-05-26 11:35:39 +02:00
parent c67024f36f
commit 1f8e768220
No known key found for this signature in database

View File

@ -51,7 +51,7 @@ export class HuiAreaCard extends LitElement implements LovelaceCard {
hass: HomeAssistant
): Promise<AreaCardConfig> {
const areas = Object.values(hass.areas);
return { type: "area-legacy", area: areas[0]?.area_id || "" };
return { type: "area", area: areas[0]?.area_id || "" };
}
public getCardSize(): number {