From 6589dea2aec2b96c81ab9536cb0a80883f3d5d15 Mon Sep 17 00:00:00 2001 From: Harvey <42912136+flip-dots@users.noreply.github.com> Date: Mon, 20 Mar 2023 03:49:21 +0000 Subject: [PATCH] added link to the docs of the hass object in custom-card.md (#1720) * added link to the docs of the hass object in custom-card.md Added a link to the docs for the hass object in the API section of the document. * Update docs/frontend/custom-ui/custom-card.md --------- Co-authored-by: Paulus Schoutsen --- docs/frontend/custom-ui/custom-card.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/frontend/custom-ui/custom-card.md b/docs/frontend/custom-ui/custom-card.md index 841bda26..bca28f2a 100644 --- a/docs/frontend/custom-ui/custom-card.md +++ b/docs/frontend/custom-ui/custom-card.md @@ -78,7 +78,7 @@ Custom cards are defined as a [custom element](https://developer.mozilla.org/en- Home Assistant will call `setConfig(config)` when the configuration changes (rare). If you throw an exception if the configuration is invalid, Home Assistant will render an error card to notify the user. -Home Assistant will set the `hass` property when the state of Home Assistant changes (frequent). Whenever the state changes, the component will have to update itself to represent the latest state. +Home Assistant will set [the `hass` property](/docs/frontend/data/) when the state of Home Assistant changes (frequent). Whenever the state changes, the component will have to update itself to represent the latest state. Your card can define a `getCardSize` method that returns the size of your card as a number or a promise that will resolve to a number. A height of 1 is equivalent to 50 pixels. This will help Home Assistant distribute the cards evenly over the columns. A card size of `1` will be assumed if the method is not defined.