mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 01:08:12 +00:00
Rename "CO2 Signal" display name to Electricity Maps for consistency (#130242)
* Update strings.json for Electricity Maps * Update strings.json * Update config_flow.py * Update test_config_flow.py * Fix test
This commit is contained in:
parent
c399d8f571
commit
9f447af468
@ -168,7 +168,7 @@ class ElectricityMapsConfigFlow(ConfigFlow, domain=DOMAIN):
|
||||
)
|
||||
|
||||
return self.async_create_entry(
|
||||
title=get_extra_name(data) or "CO2 Signal",
|
||||
title=get_extra_name(data) or "Electricity Maps",
|
||||
data=data,
|
||||
)
|
||||
|
||||
|
@ -44,7 +44,7 @@ async def test_form_home(hass: HomeAssistant) -> None:
|
||||
await hass.async_block_till_done()
|
||||
|
||||
assert result2["type"] is FlowResultType.CREATE_ENTRY
|
||||
assert result2["title"] == "CO2 Signal"
|
||||
assert result2["title"] == "Electricity Maps"
|
||||
assert result2["data"] == {
|
||||
"api_key": "api_key",
|
||||
}
|
||||
@ -185,7 +185,7 @@ async def test_form_error_handling(
|
||||
await hass.async_block_till_done()
|
||||
|
||||
assert result["type"] is FlowResultType.CREATE_ENTRY
|
||||
assert result["title"] == "CO2 Signal"
|
||||
assert result["title"] == "Electricity Maps"
|
||||
assert result["data"] == {
|
||||
"api_key": "api_key",
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user