diff --git a/custom_components/tplink_ess/api.py b/custom_components/tplink_ess/api.py index 0f73fe5..81e5b1b 100644 --- a/custom_components/tplink_ess/api.py +++ b/custom_components/tplink_ess/api.py @@ -9,6 +9,7 @@ class TPLinkESSClient: """Representation of a TPLink ESS network switch.""" + ACTION_NAMES = {'hostname', 'vlan', 'pvid', 'num_ports', 'stats'} def __init__( self, @@ -25,7 +26,9 @@ def __init__( async def async_get_data(self) -> dict: """Get data from the API.""" api = TpLinkESS(self._host_mac, self._username, self._password) - return await api.update_data(switch_mac=self._switch_mac) + return await api.update_data( + switch_mac=self._switch_mac, + action_names=TPLinkESSClient.ACTION_NAMES) async def async_discover_switches(self) -> list: """Discover switches and return results.""" diff --git a/custom_components/tplink_ess/manifest.json b/custom_components/tplink_ess/manifest.json index 811e94e..f8449a2 100644 --- a/custom_components/tplink_ess/manifest.json +++ b/custom_components/tplink_ess/manifest.json @@ -13,7 +13,7 @@ "tplink-ess-lib" ], "requirements": [ - "tplink-ess-lib==0.4.3" + "tplink-ess-lib==0.4.5" ], - "version": "0.0.0" + "version": "0.1.2" } \ No newline at end of file