pantherale0 / ha-familysafety

Microsoft Family Safety Home Assistant integration
MIT License
14 stars 2 forks source link

Logs spammed with WARNING "Unknown account spending response, please report to developer." #64

Closed Dav-rnd closed 1 hour ago

Dav-rnd commented 4 hours ago

System Health details

System Information

version core-2024.11.1
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.12.4
os_name Linux
os_version 6.6.54-haos
arch x86_64
timezone Europe/Stockholm
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok HACS Data | ok GitHub API Calls Remaining | 4995 Installed Version | 2.0.1 Stage | running Available Repositories | 1462 Downloaded Repositories | 8
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 13.2 -- | -- update_channel | stable supervisor_version | supervisor-2024.11.2 agent_version | 1.6.0 docker_version | 27.2.0 disk_total | 30.8 GB disk_used | 5.4 GB healthy | true supported | true host_connectivity | true supervisor_connectivity | true ntp_synchronized | true virtualization | kvm board | ova supervisor_api | ok version_api | ok installed_addons | Studio Code Server (5.17.3), Get HACS (1.3.1), Advanced SSH & Web Terminal (19.0.0)
Dashboards dashboards | 9 -- | -- resources | 4 views | 10 mode | storage
Recorder oldest_recorder_run | November 12, 2024 at 08:02 -- | -- current_recorder_run | November 13, 2024 at 10:54 estimated_db_size | 84.79 MiB database_engine | sqlite database_version | 3.45.3

Checklist

Describe the issue

Since I installed and setup tje MS parental control integration, HA logs are spammed with this entry, every minute:

WARNING (MainThread) [pyfamilysafety.account] Unknown account spending response, please report to developer. {'askAParentEnabled': True, 'balances': []}

Reproduction steps

  1. install parental control integration, following the procedure
  2. then the logs start to be swamped every minute with this warning.

Debug logs

activated, here is what can be seen in the logs now:

2024-11-15 11:55:02.238 WARNING (MainThread) [pyfamilysafety.account] Unknown account spending response, please report to developer. {'askAParentEnabled': True, 'balances': []}
2024-11-15 11:55:02.239 DEBUG (MainThread) [custom_components.family_safety.coordinator] Finished fetching Microsoft Family Safety data in 4.432 seconds (success: True)
2024-11-15 11:56:07.155 WARNING (MainThread) [pyfamilysafety.account] Unknown account spending response, please report to developer. {'askAParentEnabled': True, 'balances': []}
2024-11-15 11:56:07.156 DEBUG (MainThread) [custom_components.family_safety.coordinator] Finished fetching Microsoft Family Safety data in 5.349 seconds (success: True)
2024-11-15 11:57:11.200 WARNING (MainThread) [pyfamilysafety.account] Unknown account spending response, please report to developer. {'askAParentEnabled': True, 'balances': []}
2024-11-15 11:57:11.201 DEBUG (MainThread) [custom_components.family_safety.coordinator] Finished fetching Microsoft Family Safety data in 4.394 seconds (success: True)
2024-11-15 11:58:15.428 WARNING (MainThread) [pyfamilysafety.account] Unknown account spending response, please report to developer. {'askAParentEnabled': True, 'balances': []}
2024-11-15 11:58:15.428 DEBUG (MainThread) [custom_components.family_safety.coordinator] Finished fetching Microsoft Family Safety data in 4.622 seconds (success: True)

Diagnostics dump

No response

Dav-rnd commented 4 hours ago

home-assistant_family_safety_2024-11-15T11-00-58.060Z.log

more detailed log attached

pantherale0 commented 2 hours ago

Hi, this should already be fixed in the latest beta. What version are you using?

Dav-rnd commented 2 hours ago

Hi, I am using version 1.2.0.

pantherale0 commented 1 hour ago

Ok, update to 2024.12.0b0 and it should be fixed.

Dav-rnd commented 1 hour ago

updated and restarted - works fine now! Thks a lot for a quick fix. Do you want me to close the issue as completed, or do you want to keep it to make sure the code reaches next main release?

pantherale0 commented 1 hour ago

Thanks, no need, already closed.