tlskinneriv / awnet_local

Enables local support for Ambient Weather personal weather stations.
26 stars 5 forks source link

awnet_local_data_<mac_address> as file name can't copy in Windows #26

Closed heyitsyang closed 1 year ago

heyitsyang commented 1 year ago

Integration Version: v1.1.1

Home Assistant Version: 2023.5.4

Describe the bug A clear and concise description of what the bug is.

The integration creates a file in the .storage directory whose filename is incompatible with the Windows filesystem due to use of colons ( : ) in the filename. This prevents copying of this file using Windows as a mechanism for directly copying this file for backups and other purposes.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Expected behavior is the ability to use Samba and other methods to copy the file using Windows

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.

Debug log output from the integration (see Home Assistant docs for how to enable debug logging for an integration; integration name: "custom_components.awnet_local")

Paste your logs here

Screenshot 2023-06-09 161504

tlskinneriv commented 1 year ago

This is a legitimate usage that I simply had not thought of. Will work the fix into the next release. Thanks!