Skip to content

Commit a05ce12

Browse files
committed
Fix
- fixed the issue with some sensors being added late
1 parent 3c63646 commit a05ce12

File tree

1 file changed

+1
-1
lines changed
  • custom_components/plex_recently_added

1 file changed

+1
-1
lines changed

custom_components/plex_recently_added/sensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ async def async_setup_entry(
2727
coordinator: PlexDataCoordinator = hass.data[DOMAIN][config_entry.entry_id]
2828
section_types = config_entry.data[CONF_SECTION_TYPES]
2929

30-
async_add_entities([PlexRecentlyAddedSensor(coordinator, config_entry, type) for type in section_types] + [PlexRecentlyAddedSensor(coordinator, config_entry)], update_before_add=True)
30+
async_add_entities([PlexRecentlyAddedSensor(coordinator, config_entry, type) for type in section_types] + [PlexRecentlyAddedSensor(coordinator, config_entry)])
3131

3232

3333
class PlexRecentlyAddedSensor(CoordinatorEntity[PlexDataCoordinator], SensorEntity):

0 commit comments

Comments
 (0)