mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 16:56:35 +00:00
FIx selecting service/url path action after choosing default action (#9376)
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
This commit is contained in:
parent
226d6216b7
commit
8a33d174d7
@ -33,18 +33,18 @@ export class HuiActionEditor extends LitElement {
|
|||||||
@property() protected hass?: HomeAssistant;
|
@property() protected hass?: HomeAssistant;
|
||||||
|
|
||||||
get _navigation_path(): string {
|
get _navigation_path(): string {
|
||||||
const config = this.config as NavigateActionConfig;
|
const config = this.config as NavigateActionConfig | undefined;
|
||||||
return config.navigation_path || "";
|
return config?.navigation_path || "";
|
||||||
}
|
}
|
||||||
|
|
||||||
get _url_path(): string {
|
get _url_path(): string {
|
||||||
const config = this.config as UrlActionConfig;
|
const config = this.config as UrlActionConfig | undefined;
|
||||||
return config.url_path || "";
|
return config?.url_path || "";
|
||||||
}
|
}
|
||||||
|
|
||||||
get _service(): string {
|
get _service(): string {
|
||||||
const config = this.config as CallServiceActionConfig;
|
const config = this.config as CallServiceActionConfig;
|
||||||
return config.service || "";
|
return config?.service || "";
|
||||||
}
|
}
|
||||||
|
|
||||||
private _serviceAction = memoizeOne(
|
private _serviceAction = memoizeOne(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user