Updated to 0.84.2 Problem loading custom components

I done a check in Configuration validation

Configuration invalid

Platform not found: sensor.attributes
Platform not found: binary_sensor.device_tracker_sensor

Any help please.

can you show us more

I am using two custom components.

custom_components\binary_sensor
device_tracker_sensor.py
https://github.com/abmantis/homeassistant-custom-components/tree/master/others/binary_sensor

custom_components\sensor
attributes.py
https://github.com/pilotak/HomeAssistant-MyConfig/tree/master/custom_components/sensor

This is from the logs.

2018-12-16 12:28:36 ERROR (MainThread) [homeassistant.components] Platform not found: sensor.attributes

Platform not found: binary_sensor.device_tracker_sensor

i have also an issue with custom components sensor after upgrading, worked before on 83.x and before

below the error

the file kostal.py is present in this folder: config\custom_components\sensor

got the file from here :

2018-12-16 21:29:31 ERROR (SyncWorker_2) [homeassistant.loader] Error loading custom_components.sensor.kostal. Make sure all dependencies are installed
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/loader.py”, line 92, in get_component
module = importlib.import_module(path)
File “/usr/local/lib/python3.6/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 994, in _gcd_import
File “”, line 971, in _find_and_load
File “”, line 955, in _find_and_load_unlocked
File “”, line 665, in _load_unlocked
File “”, line 678, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/config/custom_components/sensor/kostal.py”, line 14, in
from homeassistant.helpers.restore_state import async_get_last_state
ImportError: cannot import name ‘async_get_last_state’
2018-12-16 21:29:31 ERROR (SyncWorker_2) [homeassistant.loader] Unable to find component sensor.kostal

i had to comment out this line in the custom .py file

#from homeassistant.helpers.restore_state import async_get_last_state

Problem solved

If you change the line in the .py file.

from homeassistant.helpers.restore_state import async_get_last_state

To this

from homeassistant.helpers.restore_state import 
RestoreEntity

It fixed both of these files for me. Thanks to @rogro82

Thank you!