Workday Sensor stopped working after updates

Hiya

I just updated both the Core and Home Assistant to the latest versions, and my Workday sensor has since broken - I did both together one after the other so I don’t know which might have impacted it.

I feel it’s more likely my configuration though, as I don’t see anyone else having the same issues post upgrade.

System Health

version core-2022.3.8
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.9.9
os_name Linux
os_version 5.10.108
arch x86_64
timezone Pacific/Auckland
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 4903
Installed Version 1.24.1
Stage running
Available Repositories 1076
Downloaded Repositories 16
Home Assistant Cloud
logged_in true
subscription_expiration April 29, 2022, 12:00 PM
relayer_connected true
remote_enabled true
remote_connected true
alexa_enabled false
google_enabled true
remote_server ap-southeast-1-0.ui.nabu.casa
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 7.6
update_channel stable
supervisor_version supervisor-2022.03.5
docker_version 20.10.9
disk_total 234.0 GB
disk_used 12.2 GB
healthy true
supported true
board generic-x86-64
supervisor_api ok
version_api ok
installed_addons Node-RED (11.1.1), File editor (5.3.3), Check Home Assistant configuration (3.10.0), Samba share (9.5.1), deCONZ (6.12.0), Home Assistant Google Drive Backup (0.106.2), Mosquitto broker (6.0.1), SSH & Web Terminal (10.1.1), AdGuard Home (4.5.0)
Lovelace
dashboards 3
resources 7
views 5
mode storage

In configuration.yaml, pretty basic:

binary_sensor:
  - platform: workday
    country: NZ
    province: AUK
    workdays: [mon, tue, wed, thu, fri]
    excludes: [sat, sun]

And yet when I do a config validation, I get:

Platform error binary_sensor.workday - Exception importing homeassistant.components.workday.binary_sensor 

And in logs:

Logger: homeassistant.loader
Source: components/workday/binary_sensor.py:8
First occurred: April 2, 2022, 8:48:42 PM (5 occurrences)
Last logged: 10:02:05 AM

Unexpected exception importing platform homeassistant.components.workday.binary_sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/loader.py", line 572, in get_platform
    cache[full_name] = self._import_platform(platform_name)
  File "/usr/src/homeassistant/homeassistant/loader.py", line 589, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
  File "/usr/local/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 850, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/usr/src/homeassistant/homeassistant/components/workday/binary_sensor.py", line 8, in <module>
    import holidays
  File "/usr/local/lib/python3.9/site-packages/holidays/__init__.py", line 13, in <module>
    from holidays.countries import *
  File "/usr/local/lib/python3.9/site-packages/holidays/countries/__init__.py", line 58, in <module>
    from .korea import Korea, KR, KOR
  File "/usr/local/lib/python3.9/site-packages/holidays/countries/korea.py", line 25, in <module>
    from korean_lunar_calendar import KoreanLunarCalendar
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 982, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 925, in _find_spec
  File "<frozen importlib._bootstrap_external>", line 1414, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1386, in _get_spec
  File "<frozen importlib._bootstrap_external>", line 1517, in find_spec
  File "<frozen importlib._bootstrap_external>", line 1560, in _fill_cache
OSError: [Errno 74] Bad message: '/usr/local/lib/python3.9/site-packages/korean_lunar_calendar'

What’s all the in stuff there about Korea!?
I’m in New Zealand.

Appreciate any help, as it’s broken a lot of automations.

I wouldn’t worry about this part. The integration library is using other libraries - including this one for Korea and tries to load it regardless whether or not your configuration points to anything related to Korea.

Unfortunately I don’t know what exactly may have caused your issue, but I believe that error message OSError: [Errno 74] Bad message may point to a corrupted file or corrupted filesystem.

Hmm ok thanks.

How does one go about checking/fixing the file system?
Any pointers as to where to start?

Thanks for your help.

As some closure, I found this all this nasty looking crap was sitting in the CLI.

Freaked me out a little at first, the EXT4-fs errors, punted on a reboot of the host first, and it all came back clean, including the workday sensor working!?

Who knows…

Thank you anyway!

Well, those error message could indicate that your SD card or hard drive is about to fail.

Yeah doesn’t inspire confidence, even with it ‘coming right’.

It’s just the factory SSD that came with the Intel NUC.

Is there some form of CHKDSK equivalent that I can run from the command line?