Rename Twitter to X (#102214)

This commit is contained in:
c0ffeeca7 2023-10-20 12:02:43 +02:00 committed by GitHub
parent 554ab94782
commit 4e63823970
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

@ -275,7 +275,7 @@
"name": "Block Twitch"
},
"block_twitter": {
"name": "Block Twitter"
"name": "Block X (formerly Twitter)"
},
"block_video_streaming": {
"name": "Block video streaming"

View File

@ -1,6 +1,6 @@
{
"domain": "twitter",
"name": "Twitter",
"name": "X",
"codeowners": [],
"documentation": "https://www.home-assistant.io/integrations/twitter",
"iot_class": "cloud_push",

View File

@ -6028,7 +6028,7 @@
"iot_class": "cloud_polling"
},
"twitter": {
"name": "Twitter",
"name": "X",
"integration_type": "hub",
"config_flow": false,
"iot_class": "cloud_push"

View File

@ -513,11 +513,11 @@ async def test_switch(
assert entry
assert entry.unique_id == "xyz12_block_twitch"
state = hass.states.get("switch.fake_profile_block_twitter")
state = hass.states.get("switch.fake_profile_block_x_formerly_twitter")
assert state
assert state.state == STATE_ON
entry = registry.async_get("switch.fake_profile_block_twitter")
entry = registry.async_get("switch.fake_profile_block_x_formerly_twitter")
assert entry
assert entry.unique_id == "xyz12_block_twitter"