mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +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
c96f1c87a6
commit
e797149a16
@ -168,7 +168,7 @@ class ElectricityMapsConfigFlow(ConfigFlow, domain=DOMAIN):
|
|||||||
)
|
)
|
||||||
|
|
||||||
return self.async_create_entry(
|
return self.async_create_entry(
|
||||||
title=get_extra_name(data) or "CO2 Signal",
|
title=get_extra_name(data) or "Electricity Maps",
|
||||||
data=data,
|
data=data,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ async def test_form_home(hass: HomeAssistant) -> None:
|
|||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
|
|
||||||
assert result2["type"] is FlowResultType.CREATE_ENTRY
|
assert result2["type"] is FlowResultType.CREATE_ENTRY
|
||||||
assert result2["title"] == "CO2 Signal"
|
assert result2["title"] == "Electricity Maps"
|
||||||
assert result2["data"] == {
|
assert result2["data"] == {
|
||||||
"api_key": "api_key",
|
"api_key": "api_key",
|
||||||
}
|
}
|
||||||
@ -185,7 +185,7 @@ async def test_form_error_handling(
|
|||||||
await hass.async_block_till_done()
|
await hass.async_block_till_done()
|
||||||
|
|
||||||
assert result["type"] is FlowResultType.CREATE_ENTRY
|
assert result["type"] is FlowResultType.CREATE_ENTRY
|
||||||
assert result["title"] == "CO2 Signal"
|
assert result["title"] == "Electricity Maps"
|
||||||
assert result["data"] == {
|
assert result["data"] == {
|
||||||
"api_key": "api_key",
|
"api_key": "api_key",
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user