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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user