1
0
mirror of https://github.com/home-assistant/core.git synced 2026-04-25 19:29:04 +01:00

Azure DevOps build sensor attributes to new sensors (#114948)

* Setup for split

* Adjust to allow for None

* Create

* Add missing

* Fix datetime parsing in Azure DevOps sensor

* Remove definition id and name

These aren't needed and will never change

* Add tests for each sensor

* Add tests for edge cases

* Rename translations

* Update

* Use base sensor descriptions

* Remove

* Drop status

using this later for an event entity

* Switch to timestamp

* Switch to timestamp

* Merge

* Update snapshot

* Improvements from @joostlek

* Update homeassistant/components/azure_devops/sensor.py

---------

Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
This commit is contained in:
Aidan Timson
2024-06-04 09:50:43 +01:00
committed by GitHub
parent 7815840194
commit 42414d55e0
7 changed files with 1581 additions and 94 deletions

View File

@@ -22,7 +22,7 @@ async def test_load_unload_entry(
assert mock_devops_client.authorized
assert mock_devops_client.authorize.call_count == 1
assert mock_devops_client.get_builds.call_count == 2
assert mock_devops_client.get_builds.call_count == 1
assert mock_config_entry.state is ConfigEntryState.LOADED