Vizio Template Help

Cant seem to get templating to work with my home assistant. The below config gives me this error Platform error media_player.template - No module named ‘homeassistant.components.template.media_player’ I then followed the directions here https://github.com/Sennevds/media_player.template/issues/2 to add all the custom components listed in. Does anyone have a vizio template they can share? Trying to setup a custom lovelace remote for my vizio tv and cant seem to get anywhere with the template.

media_player:
  - platform: template
    media_players:
      theatortv:
        value_template: "{{ is_state('media_player.vizio_smartcast', 'on') }}"
        turn_on:
          service: media_player.turn_on
          data:
            entity_id: media_player.vizio_smartcast
        turn_off:
          service: media_player.turn_off
          data:
            entity_id: media_player.vizio_smartcast
        volume_up:
          service: media_player.volume_up
          data:
            entity_id: media_player.vizio_smartcast
        volume_down:
          service: media_player.volume_down
          data:
            entity_id: media_player.vizio_smartcast

Version Info - Started off with the OVA template

Version 2020.12.2
Installation Type Home Assistant OS
Development false
Supervisor true
Docker true
Virtual Environment false
Python Version 3.8.6
Operating System Family Linux
Operating System Version 5.4.84
CPU Architecture x86_64
Timezone America/New_York

Home Assistant Cloud

Logged In false
Reach Certificate Server ok
Reach Authentication Server ok
Reach Home Assistant Cloud ok

Hass.io

Host Operating System Home Assistant OS 5.9
Update Channel stable
Supervisor Version 2020.12.7
Docker Version 19.03.13
Disk Total 5.2 GB
Disk Used 2.9 GB
Healthy true
Supported true
Board ova
Supervisor API ok
Version API ok
Installed Add-ons File editor (5.2.0), Node-RED (7.2.11), FTP (3.5.0)

Lovelace

Dashboards 1
Mode storage
Views 2
Resources 0