Package setup failed

Invalid configuation after trying to add packages with separate folder to config file.

Errors when trying to control config:

Package XX setup failed. Component XX Integration 'XX' not found.

File outline:

Config
|
| - - packages
|     |
|     | - - package_yaml_file.yaml
|     | - - another_package.yaml
|
|
| - - configuration.yaml

Configuration file:

homeassistant:
  # Load packages
  packages: !include_dir_named packages

One complete packages file:

my_trigger_package:
  has_date: true
  has_time: true

Any help would be much appreciated!

Found the solution.

The package file must include input type like:

input_datetime:
  my_trigger_package:
    has_date: true
    has_time: true

or similar for input_boolean or input_number.