Refactor property visibilities

Narrows down the visibility of abstract class properties.
This commit is contained in:
DigiLive
2025-04-27 10:17:56 +02:00
parent 2c9159c25e
commit 640a276afb
2 changed files with 3 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ abstract class AbstractCard {
* *
* Child classes should override this property to reflect their own card type and options. * Child classes should override this property to reflect their own card type and options.
*/ */
configuration: LovelaceCardConfig = { protected configuration: LovelaceCardConfig = {
type: 'custom:mushroom-entity-card', type: 'custom:mushroom-entity-card',
icon: 'mdi:help-circle', icon: 'mdi:help-circle',
}; };

View File

@@ -20,7 +20,8 @@ abstract class AbstractChip {
* *
* Child classes should override this property to reflect their own card type and options. * Child classes should override this property to reflect their own card type and options.
*/ */
configuration: LovelaceChipConfig = { protected configuration: LovelaceChipConfig = {
// TODO: Check if this is correct vs custom:mushroom-template-badge. Also in child classes.
type: 'template', type: 'template',
}; };