mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-15 21:36:31 +00:00
Added setConfig to make example work (#50)
This commit is contained in:
parent
36a01de7d1
commit
b77148e246
@ -70,6 +70,13 @@ class ContentCardExample extends HTMLElement {
|
|||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
setConfig(config) {
|
||||||
|
if (!config.entity) {
|
||||||
|
throw new Error('You need to define an entity');
|
||||||
|
}
|
||||||
|
this.config = config;
|
||||||
|
}
|
||||||
|
|
||||||
// The height of your card. Home Assistant uses this to automatically
|
// The height of your card. Home Assistant uses this to automatically
|
||||||
// distribute all cards over the available columns.
|
// distribute all cards over the available columns.
|
||||||
getCardSize() {
|
getCardSize() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user