Fix limit and order property for transmission integration (#123305)
This commit is contained in:
parent
60117ae150
commit
c2f2a868c4
1 changed files with 2 additions and 2 deletions
|
@ -55,12 +55,12 @@ class TransmissionDataUpdateCoordinator(DataUpdateCoordinator[SessionStats]):
|
|||
@property
|
||||
def limit(self) -> int:
|
||||
"""Return limit."""
|
||||
return self.config_entry.data.get(CONF_LIMIT, DEFAULT_LIMIT)
|
||||
return self.config_entry.options.get(CONF_LIMIT, DEFAULT_LIMIT)
|
||||
|
||||
@property
|
||||
def order(self) -> str:
|
||||
"""Return order."""
|
||||
return self.config_entry.data.get(CONF_ORDER, DEFAULT_ORDER)
|
||||
return self.config_entry.options.get(CONF_ORDER, DEFAULT_ORDER)
|
||||
|
||||
async def _async_update_data(self) -> SessionStats:
|
||||
"""Update transmission data."""
|
||||
|
|
Loading…
Add table
Reference in a new issue