mirror of
https://github.com/DigiLive/mushroom-strategy.git
synced 2025-08-04 20:14:28 +02:00
Fix card configuration
The type of the card configuration was set to EntityCardConfig, which is too strict as a generic type of card. The type is loosened to LoveLaceCardConfig.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Registry } from '../Registry';
|
||||
import { EntityCardConfig } from '../types/lovelace-mushroom/cards/entity-card-config';
|
||||
import { LovelaceCardConfig } from '../types/homeassistant/data/lovelace/config/card';
|
||||
import { AbstractCardConfig } from '../types/strategy/strategy-cards';
|
||||
import { RegistryEntry } from '../types/strategy/strategy-generics';
|
||||
import { logMessage, lvlFatal } from '../utilities/debug';
|
||||
@@ -22,7 +22,7 @@ abstract class AbstractCard {
|
||||
*
|
||||
* Child classes should override this property to reflect their own card type and options.
|
||||
*/
|
||||
configuration: EntityCardConfig = {
|
||||
configuration: LovelaceCardConfig = {
|
||||
type: 'custom:mushroom-entity-card',
|
||||
icon: 'mdi:help-circle',
|
||||
};
|
||||
|
Reference in New Issue
Block a user