1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-20 02:38:53 +00:00

Add and fix stylistic eslint rules (#23735)

* Fix stylistic eslint rules

* Fix eslint issues
This commit is contained in:
Wendelin
2025-01-14 21:00:14 +01:00
committed by GitHub
parent 69a93ddb6e
commit e703750136
582 changed files with 12485 additions and 13451 deletions

View File

@@ -148,7 +148,8 @@ export const subscribeLogbook = (
export const createHistoricState = (
currentStateObj: HassEntity,
state?: string
): HassEntity => <HassEntity>(<unknown>{
): HassEntity =>
({
entity_id: currentStateObj.entity_id,
state: state,
attributes: {
@@ -170,7 +171,7 @@ export const createHistoricState = (
? undefined
: currentStateObj?.attributes.entity_picture,
},
});
}) as unknown as HassEntity;
export const localizeTriggerSource = (
localize: LocalizeFunc,