refactor: Convert protected methods to private (#2358)
This commit is contained in:
@@ -5,9 +5,9 @@ import { CardHASSAPI } from '../types';
|
||||
import { StateWatcher, StateWatcherSubscriptionInterface } from './state-watcher';
|
||||
|
||||
export class HASSManager {
|
||||
protected _hass: HomeAssistant | null = null;
|
||||
protected _api: CardHASSAPI;
|
||||
protected _stateWatcher: StateWatcher = new StateWatcher();
|
||||
private _hass: HomeAssistant | null = null;
|
||||
private _api: CardHASSAPI;
|
||||
private _stateWatcher: StateWatcher = new StateWatcher();
|
||||
|
||||
constructor(api: CardHASSAPI) {
|
||||
this._api = api;
|
||||
|
||||
@@ -9,7 +9,7 @@ export interface StateWatcherSubscriptionInterface {
|
||||
}
|
||||
|
||||
export class StateWatcher implements StateWatcherSubscriptionInterface {
|
||||
protected _watcherCallbacks = new Map<StateWatcherCallback, string[]>();
|
||||
private _watcherCallbacks = new Map<StateWatcherCallback, string[]>();
|
||||
|
||||
public setHASS(oldHass: HomeAssistant | null, hass: HomeAssistant): void {
|
||||
if (!oldHass) {
|
||||
|
||||
Reference in New Issue
Block a user