Remove the zha-quirks compatibility shims once a zha-quirks release with the entity APIs is required
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 38/100
Direzione di ricerca
Read the TODOs in zha/application/platforms/__init__.py and zha/application/platforms/sensor/__init__.py, then check the dependency lock for a zha-quirks release containing zigpy/zha-device-handlers#5410 and whether HA Core has stopped reading entity.endpoint in homeassistant/components/zha/websocket_api.py. Once both conditions hold, remove the shims and regenerate tests/data/devices/frient-a-s-splzb-141-0x00020009.json; compare the snapshot changes with the two fields noted in the issue.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
zigpy/zha#919 and zigpy/zha#978 added two compatibility shims so that zha-quirks releases without zigpy/zha-device-handlers#5410 keep working. That PR is merged, but the newest zha-quirks release (2.3.0) predates it. The shims can be removed once every zha-quirks version that can run with ZHA includes it. In practice, that is when HA Core pins a zha-quirks release with it and zha's own lock uses one.
Changes
from_quirkinZclPlatformEntity.__init__(zha/application/platforms/__init__.py, TODO "remove this backwards compatibility shim after zha-device-handlers#5410 is merged"). Only zha-quirks releases before that PR pass this keyword.- The deprecated
endpointandtargets_clusteron the RSSI/LQI sensors (zha/application/platforms/sensor/__init__.py, TODO "remove once zha-quirks only filtersZclPlatformEntityby endpoint/cluster and HA Core'swebsocket_get_groupable_devicesno longer readsentity.endpoint"). The quirks half is done in zigpy/zha-device-handlers#5410:EntityFilteronly checks endpoint and cluster onZclPlatformEntity. The HA Core half is still open:websocket_get_groupable_devices(homeassistant/components/zha/websocket_api.py) still filters entities withentity_ref.entity_data.entity.endpoint.id == ep_id. - Snapshot: when zha's lock picks up the first zha-quirks release with that PR, regenerate
tests/data/devices/frient-a-s-splzb-141-0x00020009.json. The frient quirk now replaces the device temperature entity withWholeDegreeDeviceTemperature. When this was checked against the PR branch, onlyclass_nameandsuggested_display_precisionchanged in the snapshot.
- Lingua principale
- Python
- Stelle
- 96
- Fork
- 84
- Merge medio
- 3g 1h
- PR unite (30g)
- 13
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di zigpy/zha
-
Analog output numbers and analog input sensors show eleven BACnet engineering units as a different unitForse già presa @zigpy-review-bot l’ha presa 2 giorni fa. Apertabot: code audit
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
device specific quirks
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
entities
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
quirks
Difficoltà 3/5 Mezza giornata Idoneità per principianti 58/100
I maintainer di solito rispondono entro 1 giorno
Issue simili
-
pydanty:is-working
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
pydantic/pydantic-ai#14472 ·
I maintainer di solito rispondono entro 1 giorno
-
bug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
patrickballard/wheelgap#728 ·
-
bug good first issue
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
choras-org/simulation-backend#58 ·
I maintainer di solito rispondono entro 1 giorno
-
backend part-1-modeling testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100