Add color support to matter lights (#87366)
* Added the correct attributes to ColorTemperatureLight and ExtendedColorLight and added CurrentY to codespell ignore word list * Added enums for matter color modes * Added support for reading color and color temperature settings from matter api * Added away of getting the ColorControl featureMap while the get_cluster(ColorControl) function is fixed * Initial working implementation of color and color temperature * Full supports for lights with both hs and xy * Added checks to make sure color features are supported before making matter call * Changed how color mode is figured out * Moved the logic that gets the brightness to its own function * Adds matter light tests for hass triggered events * Adds full test coverage for matter all types of matter lights * Adds full test coverage for matter all types of matter lights * Moved light convertion logic to util.py * Reorderd codespell ignore list and removed unused code * Adds brightness state test
This commit is contained in:
@@ -31,7 +31,7 @@ repos:
|
||||
hooks:
|
||||
- id: codespell
|
||||
args:
|
||||
- --ignore-words-list=additionals,alle,alot,ba,bre,bund,datas,dof,dur,ether,farenheit,falsy,fo,haa,hass,hist,iam,iff,iif,incomfort,ines,ist,lightsensor,mut,nam,nd,pres,pullrequests,referer,resset,rime,ser,serie,sur,te,technik,ue,uint,unsecure,visability,wan,wanna,withing,zar
|
||||
- --ignore-words-list=additionals,alle,alot,ba,bre,bund,currenty,datas,dof,dur,ether,farenheit,falsy,fo,haa,hass,hist,iam,iff,iif,incomfort,ines,ist,lightsensor,mut,nam,nd,pres,pullrequests,referer,resset,rime,ser,serie,sur,te,technik,ue,uint,unsecure,visability,wan,wanna,withing,zar
|
||||
- --skip="./.*,*.csv,*.json"
|
||||
- --quiet-level=2
|
||||
exclude_types: [csv, json]
|
||||
|
||||
Reference in New Issue
Block a user