mirror of
https://github.com/DigiLive/mushroom-strategy.git
synced 2025-08-04 20:14:28 +02:00
Refactor property visibilities
Narrows down the visibility of abstract class properties.
This commit is contained in:
@@ -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',
|
||||||
};
|
};
|
||||||
|
@@ -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',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user