mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Fix limit and order property for transmission integration (#123305)
This commit is contained in:
parent
60117ae150
commit
c2f2a868c4
@ -55,12 +55,12 @@ class TransmissionDataUpdateCoordinator(DataUpdateCoordinator[SessionStats]):
|
|||||||
@property
|
@property
|
||||||
def limit(self) -> int:
|
def limit(self) -> int:
|
||||||
"""Return limit."""
|
"""Return limit."""
|
||||||
return self.config_entry.data.get(CONF_LIMIT, DEFAULT_LIMIT)
|
return self.config_entry.options.get(CONF_LIMIT, DEFAULT_LIMIT)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def order(self) -> str:
|
def order(self) -> str:
|
||||||
"""Return order."""
|
"""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:
|
async def _async_update_data(self) -> SessionStats:
|
||||||
"""Update transmission data."""
|
"""Update transmission data."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user