Skip to content

Commit 171d043

Browse files
committed
pruning unused
1 parent c42fdac commit 171d043

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

appdaemon/plugin_management.py

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from collections.abc import Generator, Iterable
88
from logging import Logger
99
from pathlib import Path
10-
from typing import TYPE_CHECKING, Any, Dict, Type, Union
10+
from typing import TYPE_CHECKING, Any, Dict, Type
1111

1212
from . import utils
1313
from .app_management import UpdateMode
@@ -107,23 +107,6 @@ def is_ready(self) -> bool:
107107
def set_log_level(self, level):
108108
self.logger.setLevel(self.AD.logging.log_levels[level])
109109

110-
async def perf_data(self) -> Dict[str, Union[int, float]]:
111-
data = {
112-
"bytes_sent": self.bytes_sent,
113-
"bytes_recv": self.bytes_recv,
114-
"requests_sent": self.requests_sent,
115-
"updates_recv": self.updates_recv,
116-
"duration": await self.AD.sched.get_now_ts() - self.last_check_ts,
117-
}
118-
119-
self.bytes_sent = 0
120-
self.bytes_recv = 0
121-
self.requests_sent = 0
122-
self.updates_recv = 0
123-
self.last_check_ts = await self.AD.sched.get_now_ts()
124-
125-
return data
126-
127110
def update_perf(self, **kwargs):
128111
self.bytes_sent += kwargs.get("bytes_sent", 0)
129112
self.bytes_recv += kwargs.get("bytes_recv", 0)

0 commit comments

Comments
 (0)