-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename curtain to more generic window coverings
- Loading branch information
1 parent
53de521
commit f1d8ebe
Showing
23 changed files
with
121 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
drivers/curtain/TuyaCurtainConstants.ts → ...coverings/TuyaWindowCoveringsConstants.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
import TRANSLATIONS from './translations.json'; | ||
|
||
export const CURTAIN_CAPABILITY_MAPPING = { | ||
export const WINDOW_COVERINGS_CAPABILITY_MAPPING = { | ||
control: 'windowcoverings_state', | ||
mach_operate: 'windowcoverings_state', | ||
position: 'windowcoverings_set', | ||
percent_control: 'windowcoverings_set', | ||
percent_state: 'windowcoverings_set', | ||
} as const; | ||
|
||
export const CURTAIN_CAPABILITIES = { | ||
export const WINDOW_COVERINGS_CAPABILITIES = { | ||
read_write: ['control', 'position', 'mach_operate', 'percent_control'], | ||
setting: ['opposite', 'control_back'], | ||
} as const; | ||
|
||
export type HomeyCurtainSettings = { | ||
export type HomeyWindowCoveringsSettings = { | ||
inverse: boolean; | ||
}; | ||
|
||
export type TuyaCurtainSettings = { | ||
export type TuyaWindowCoveringsSettings = { | ||
opposite: boolean; // inverse | ||
control_back: boolean; // inverse | ||
control_back_mode: 'forward' | 'back'; // inverse | ||
}; | ||
|
||
export const CURTAIN_SETTING_LABELS = TRANSLATIONS.setting_labels; | ||
export const WINDOW_COVERINGS_SETTING_LABELS = TRANSLATIONS.setting_labels; |
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Oops, something went wrong.