diff --git a/sense_energy/asyncsenseable.py b/sense_energy/asyncsenseable.py index 392f835..13b91ce 100644 --- a/sense_energy/asyncsenseable.py +++ b/sense_energy/asyncsenseable.py @@ -117,7 +117,7 @@ async def validate_mfa(self, code: str) -> None: data = await resp.json() self._set_auth_data(data) self.set_monitor_id(data["monitors"][0]["id"]) - await self.fetch_discovered_devices() + await self.fetch_devices() async def renew_auth(self) -> None: """Renew the authentication token.""" @@ -278,12 +278,12 @@ async def fetch_devices(self) -> None: async def get_discovered_device_names(self) -> list[str]: """Outdated. Get list of device names from API. - Use fetch_discovered_devices and sense.devices instead.""" + Use fetch_devices and sense.devices instead.""" await self.fetch_devices() return [d.name for d in self._devices.values()] async def get_discovered_device_data(self): """Outdated. Get list of raw device data from API. - Use fetch_discovered_devices and sense.devices instead.""" + Use fetch_devices and sense.devices instead.""" json = self._api_call(f"monitors/{self.sense_monitor_id}/devices/overview") return await json["devices"]