File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 * Manages state and actions for Home Assistant entity control and configuration.
55 */
66
7- import { create } from 'zustand' ;
7+ import { createStore } from 'zustand/vanilla ' ;
88
99// ============================================================================
1010// Types
@@ -49,7 +49,7 @@ interface HAStore {
4949// Store Implementation
5050// ============================================================================
5151
52- export const useHAStore = create < HAStore > ( ( set , get ) => ( {
52+ export const haStore = createStore < HAStore > ( ( set , get ) => ( {
5353 // Initial state
5454 available : false ,
5555 loading : false ,
@@ -244,3 +244,6 @@ export const useHAStore = create<HAStore>((set, get) => ({
244244 set ( { error } ) ;
245245 }
246246} ) ) ;
247+
248+ // Export a convenience function to match the previous API
249+ export const useHAStore = haStore ;
You can’t perform that action at this time.
0 commit comments