agittins / agittins/bermuda

bermuda uses device_registry.devices which is deprecated

Aberta
#820 1 comentário 3 reações 1 responsável Reivindicada por @agittins Ver no GitHub
Linguagem predominante
Python
Estrelas
2k
Forks
71
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

## Describe the bug
Testing the September 2026 core beta release the following depreciation warning is generated:

Logger: homeassistant.helpers.frame
Source: helpers/frame.py:348
First occurred: 08:17:47 (3 occurrences)
Last logged: 08:17:58

Detected that custom integration 'bermuda' uses `device_registry.devices` as a mapping or calls its lookup methods, which is deprecated; iterate it to get the device entries, or use `async_get`, `async_entries_for_config_entry` and similar helpers for lookups at custom_components/bermuda/bermuda_device.py, line 321: devreg_devices = self._coordinator.dr.devices.get_entries(None, connections=connlist). This will stop working in Home Assistant 2027.9.0, please create a bug report at https://github.com/agittins/bermuda/issues

No actual impact on operation, at least not for another year :)

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Start in custom_components/bermuda/bermuda_device.py around line 321, where the deprecated device registry lookup is reported. Read the warning and the surrounding coordinator code, then verify the lookup no longer triggers the deprecation warning under the September 2026 Home Assistant core beta.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
python
Domínio
backend
Tipo de issue
Bug
Dificuldade
2/5
Tempo estimado
1-3 horas
Status de atividade
Ativa
Clareza
Claramente especificada
Facilidade para iniciantes
55/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.