mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
Bump NYT Games to 0.4.3 (#127717)
This commit is contained in:
parent
4721f8ef5f
commit
32570c59c8
@ -23,7 +23,7 @@ class NYTGamesData:
|
|||||||
|
|
||||||
wordle: Wordle
|
wordle: Wordle
|
||||||
spelling_bee: SpellingBee | None
|
spelling_bee: SpellingBee | None
|
||||||
connections: Connections
|
connections: Connections | None
|
||||||
|
|
||||||
|
|
||||||
class NYTGamesCoordinator(DataUpdateCoordinator[NYTGamesData]):
|
class NYTGamesCoordinator(DataUpdateCoordinator[NYTGamesData]):
|
||||||
|
@ -6,5 +6,5 @@
|
|||||||
"documentation": "https://www.home-assistant.io/integrations/nyt_games",
|
"documentation": "https://www.home-assistant.io/integrations/nyt_games",
|
||||||
"integration_type": "service",
|
"integration_type": "service",
|
||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
"requirements": ["nyt_games==0.4.2"]
|
"requirements": ["nyt_games==0.4.3"]
|
||||||
}
|
}
|
||||||
|
@ -161,10 +161,11 @@ async def async_setup_entry(
|
|||||||
NYTGamesSpellingBeeSensor(coordinator, description)
|
NYTGamesSpellingBeeSensor(coordinator, description)
|
||||||
for description in SPELLING_BEE_SENSORS
|
for description in SPELLING_BEE_SENSORS
|
||||||
)
|
)
|
||||||
entities.extend(
|
if coordinator.data.connections is not None:
|
||||||
NYTGamesConnectionsSensor(coordinator, description)
|
entities.extend(
|
||||||
for description in CONNECTIONS_SENSORS
|
NYTGamesConnectionsSensor(coordinator, description)
|
||||||
)
|
for description in CONNECTIONS_SENSORS
|
||||||
|
)
|
||||||
|
|
||||||
async_add_entities(entities)
|
async_add_entities(entities)
|
||||||
|
|
||||||
@ -236,4 +237,5 @@ class NYTGamesConnectionsSensor(ConnectionsEntity, SensorEntity):
|
|||||||
@property
|
@property
|
||||||
def native_value(self) -> StateType | date:
|
def native_value(self) -> StateType | date:
|
||||||
"""Return the state of the sensor."""
|
"""Return the state of the sensor."""
|
||||||
|
assert self.coordinator.data.connections is not None
|
||||||
return self.entity_description.value_fn(self.coordinator.data.connections)
|
return self.entity_description.value_fn(self.coordinator.data.connections)
|
||||||
|
@ -1487,7 +1487,7 @@ numato-gpio==0.13.0
|
|||||||
numpy==1.26.4
|
numpy==1.26.4
|
||||||
|
|
||||||
# homeassistant.components.nyt_games
|
# homeassistant.components.nyt_games
|
||||||
nyt_games==0.4.2
|
nyt_games==0.4.3
|
||||||
|
|
||||||
# homeassistant.components.oasa_telematics
|
# homeassistant.components.oasa_telematics
|
||||||
oasatelematics==0.3
|
oasatelematics==0.3
|
||||||
|
@ -1235,7 +1235,7 @@ numato-gpio==0.13.0
|
|||||||
numpy==1.26.4
|
numpy==1.26.4
|
||||||
|
|
||||||
# homeassistant.components.nyt_games
|
# homeassistant.components.nyt_games
|
||||||
nyt_games==0.4.2
|
nyt_games==0.4.3
|
||||||
|
|
||||||
# homeassistant.components.google
|
# homeassistant.components.google
|
||||||
oauth2client==4.1.3
|
oauth2client==4.1.3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user